Codeasearch.com - Search your code with us Login | Register | Contact us
  Forums > Php > .htaccess redirection
ngmkumar
Posted on Nov 25, 2008
Join Date: October 2008
Location: India ( chennai )
Posts: 13
 
.htaccess redirection  

how do redirect page, if the page does not exists using .htaccess file?

kevin
Posted on Nov 25, 2008
Join Date: May 2008
Location: India ( chennai )
Posts: 4978
 
RE : .htaccess redirection  

Hi,
Just you need to set in ErrorDocument.

If the page not found it will redirect to 404.html file.

ErrorDocument 404 /404.html

 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