Go Back   Zervex Forums > ServerCP Community > Q&A
User Name
Password
Register FAQ Members List Calendar Mark Forums Read
Reply
 
Thread Tools Display Modes
  #1  
Old 03-06-2007, 07:35 PM
desiguru desiguru is offline
Registered User
 
Join Date: Oct 2006
Posts: 38
desiguru is on a distinguished road
.htaccess help plz....

I used to have a folder called "Old Ads" which was later on converted to "OldAds"

And now in my logs I see thousands of please landing on pages like:
/Old%20Ads/Microsoft/image2.gif
/Old%20Ads/Apple/image2.gif
/Old%20Ads/Google/image2.gif

etc.......

How can I just create a .htaccess file in that folder "Old Ads" so that all of my visitors go to my homepage ./ ?
Reply With Quote
  #2  
Old 03-06-2007, 09:39 PM
Jeremy Jeremy is offline
Registered User
 
Join Date: Dec 2005
Location: LA
Posts: 306
Jeremy is on a distinguished road
Re: .htaccess help plz....

PHP Code:
<?php
header
( 'Location: http://yoursite.com/andpage.html' ) ;
?>

Would work better.

I you want to use .htaccess i guess a redirect would work.
http://www.webweaver.nu/html-tips/web-redirection.shtml
__________________
http://kthxbyecrymore.com/
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:14 PM.


Powered by vBulletin Version 3.5.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.