hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : Help with .htaccess redirect
Reply

Forum Jump

Help with .htaccess redirect

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 03-27-2009, 11:26 PM
caffeine_man caffeine_man is offline
Newbie
 
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!



Sponsored Links
  #2  
Old 03-27-2009, 11:49 PM
sam0 sam0 is offline
Web Hosting Evangelist
 
Join Date: Jan 2008
Location: England
Posts: 534
Try 'Redirect 301', eg:

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

  #3  
Old 03-28-2009, 12:02 AM
caffeine_man caffeine_man is offline
Newbie
 
Join Date: Mar 2009
Posts: 6
Didn't work..

Sponsored Links
  #4  
Old 03-28-2009, 12:08 AM
sam0 sam0 is offline
Web Hosting Evangelist
 
Join Date: Jan 2008
Location: England
Posts: 534
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  
Old 04-20-2009, 09:07 PM
ramnet ramnet is offline
Virtually Flawless ;)
 
Join Date: Apr 2009
Location: USA / UK
Posts: 4,539
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.

Reply

Related posts from TheWhir.com
Title Type Date Posted
Hacker Steals $83K in Bitcoins by Hijacking Traffic Directed at Large Hosting Companies Web Hosting News 2014-08-15 15:38:55
Linux Malware Operation Windigo Infects 25,000 Web Servers Web Hosting News 2014-03-19 11:44:53
Mistakes To Avoid When Launching A New Website Design Blog 2014-01-10 10:53:50
Victorian Government to Discontinue Pro-Bono Hosting Service for Australian Non-Profits Web Hosting News 2013-12-16 12:14:05
Without Court Orders, UK Police Demand Registrars Suspend Torrent Domains Web Hosting News 2013-10-10 11:51:53


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:
WHT Membership
WHT Membership



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?