Apr

14


When a website grows bigger and bigger, some old posts might be removed, it is common to have problems like 404 page not found. Instead of going to a 404 page, maybe you want to go to your homepage instead or some other page, you can do so by writing an htaccess file, the one below is an example of redirecting visitors to search.html when they encounter a 404 page not found.

ErrorDocument 404 http://exmple.com/search.html

Hope this helps!



Similar Posts

Comments

Name (required)

Email (required)

Website

Speak your mind

Sponsors




Links