![]() |
Redirect home.php
Hi
when we type www.sportsglasses123.com in the browser it will redirect to home.php then it becomes http://www.sportsglasses123.com/home.php can we stop it i meam when we type www.sportsglasses123.com in the browser it shoudl just stay http://www.sportsglasses123.com not http://www.sportsglasses123.com/home.php thanks |
If you have access to the .htaccess file.
Your first line of htaccess should be: Code:
DirectoryIndex home.php index.php index.html index.htm######################## RewriteEngine on RewriteBase / RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /home\.php\ HTTP/ RewriteRule ^(.*)home\.php$ / [R=301,L] ##################### Note, you do not need to input the first two lines if they are already in the .htaccess file. Hope this helps. |
| All times are GMT +8. The time now is 07:54 PM. |
Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.