Thread: .htaccess
View Single Post
  #3 (permalink)  
Old 10-12-2007, 07:05 AM
chadhaajay's Avatar
chadhaajay chadhaajay is offline
WebProWorld Pro
 
Join Date: Dec 2003
Location: INDIA
Posts: 160
chadhaajay RepRank 1
Default Re: .htaccess

Yes it is possible using a 301 Redirect and here is sample code to accomplish this scenario.

redirect 301 /test http://www.your-website-url-comes-here.com

Put this code in your .htaccess file and put this file in your website's root folder. Now, whenever someone will try to open http://www.your-website-url-comes-here.com/test/ or any file in test folder then it will redirect the borswer to http://www.your-website-url-comes-here.com
Sincerely,

Ajay Chadha (Director)
Chadha Software Technologies
Reply With Quote