Results 1 to 5 of 5
Thread: Help with .htaccess redirect
-
03-27-2009, 11:26 PM #1Newbie
- Join Date
- Mar 2009
- Posts
- 6
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!
-
03-27-2009, 11:49 PM #2Web Hosting Master
- Join Date
- Jan 2008
- Location
- Europe
- Posts
- 779
Try 'Redirect 301', eg:
Redirect 301 /lulz.jpg http://www.google.com
-
03-28-2009, 12:02 AM #3Newbie
- Join Date
- Mar 2009
- Posts
- 6
Didn't work..
-
03-28-2009, 12:08 AM #4Web Hosting Master
- 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.
-
04-20-2009, 09:07 PM #5Virtually Flawless ;)
- Join Date
- Apr 2009
- Location
- USA / UK
- Posts
- 4,577