Results 1 to 5 of 5
  1. #1

    Help with .htaccess redirect

    So I use DotEasy for my hosting. I am trying to have an image redirect to a URL using .htaccess. This is the code.
    Redirect /lulz.jpg http://www.google.com
    I did it at my school using there server and it worked fine. It just wont work with DotEasy for some reason. I have both the image and the .htaccess in the root folder. Thanks!

  2. #2
    Join Date
    Jan 2008
    Location
    Europe
    Posts
    779
    Try 'Redirect 301', eg:

    Redirect 301 /lulz.jpg http://www.google.com

  3. #3
    Didn't work..

  4. #4
    Join Date
    Jan 2008
    Location
    Europe
    Posts
    779
    Then doteasy probably disallow usage of .htaccess via the 'AllowOverride' option set in the apache config.

    EDIT:
    An alternative is to create a directory called 'lulz.jpg', and in the directory create index.php and put:
    <?php header('Location: http://google.com'); ?>
    Last edited by sam0; 03-28-2009 at 12:12 AM.

  5. #5
    Join Date
    Apr 2009
    Location
    USA / UK
    Posts
    4,577
    Quote Originally Posted by sam250 View Post
    Then doteasy probably disallow usage of .htaccess via the 'AllowOverride' option set in the apache config.
    The way you tell is if you get a 404 error when you access that image url instead of a 500 or other error. If it always throws back 404 Not Found then no .htaccess support

    Usually your host can tell you if they support .htaccess or not.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •