Most may not know but .htaccess redirect is better than the meta refresh or redirect tag because there is no delay as the browser reads the .htaccess file first. Here is how it works.
Go to your projects root directory, open the .htaccess file in your servers code editor or download to your local computer and edit it with any text editor. If you download the .htaccess file to your computer you may not see it,
you may want to double check your setting and make sure you have turn on invisible / system files.
Example:
Code Breakdown
please visit: List_of_HTTP_status_codes@Wikipedia.org
thank you
Credits to: IDocX D
Go to your projects root directory, open the .htaccess file in your servers code editor or download to your local computer and edit it with any text editor. If you download the .htaccess file to your computer you may not see it,
you may want to double check your setting and make sure you have turn on invisible / system files.
Example:
PHP:
Redirect 301 / http://www.wareztunnel.com/301.php/
Redirect 404 / http://www.wareztunnel.com/404.php/
- Redirect = Tells the browser what to do.
- 301 or 404″ = Tells what error to redirect.
-
PHP:
"http://www.wareztunnel.com/404.php/" = URL to redirect to.
- Yes the / between the error value and URL does need to be there to separate the action from the event.
please visit: List_of_HTTP_status_codes@Wikipedia.org
thank you
Credits to: IDocX D