hosted by liquidweb


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

Programming Discussion Discussions related to web programming languages and other related issues. Topics may include configuration, optimization, practical usage and database connectivity.
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!

Reply With Quote


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

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

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

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

Related posts from TheWhir.com
Title Type Date Posted
Google to Build $300 Million, 300K-Square-Foot Hong Kong Data Center Web Hosting News 2011-12-09 15:58:44
Officials Arrest Six Estonians in DNSChanger Cybercrime Bust Web Hosting News 2011-11-10 21:52:48
Go Daddy Helping Customers Repair Compromised Sites Web Hosting News 2011-09-16 14:35:03
FBI Scrubs 19,000 PCs Infected by Coreflood Bot Malware Web Hosting News 2011-06-23 15:32:40
Security Firm Symantec Report Finds Spammers Using Fake URL-Shorteners Web Hosting News 2011-05-30 15:41:52


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:



 

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?