Codeasearch.com - Search your code with us Login | Register | Contact us
  Forums > Php > htaccess redirect
thiyaghuck
Posted on Jul 13, 2009
Join Date: November 2008
Location: India ( chennai )
Posts: 14
 
htaccess redirect  

Hi,
How do I redirect a URL by htaccess? Please explain me with example.

Regards,
Thiyaghu CK

benaya
Posted on Jul 14, 2009
Join Date: June 2007
Location: India ( Chennai )
Posts: 90
 
RE : htaccess redirect  

Hi,
Using .htaccess you can redirect from one file another are even website. Before that you need to enable rewrite_module in your webserver.

Then check with below code.

RewriteEngine on
RewriteRule ^1.php$ http://www.codeasearch.com

 Hot Discussion
Go Tech launches Android tablet for Rs 3,999...
Sony targets retailers with quick sales pitches and rew...
Share and discover new activities with Google Schemer...
Samsung gets 9 mn preorders for Galaxy S3: Report...
Google revamps search engine to think like a person...
 
 Discussion Topics
IT News
Php
Javascript
Technology Updates
Asp.Net
MySql
Ajax
Html
Fedora
Software Testing
Asp
Java
General
Flash
Ruby on Rails