: You want to implement permanent redirects in .htaccess. To redirect the home page to default.php you need: redirect permanent index.html http://example.com/default.php index.html is the default
You want to implement permanent redirects in .htaccess. To redirect the home page to default.php you need:
redirect permanent index.html example.com/default.php
index.html is the default document on most servers. To redirect the home page, you have to redirect the default document. In that rule, you would need to replace example.com with your own domain name.
Instead of redirecting the home page to default.php, I would recommend making that file your home page. To do so, you have to change the default document with a directive like this:
DirectoryIndex default.php
Then the contents of default.php will be served at the home page and users will never see default.php in the URL.
More posts by @Heady270
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.