Mobile app version of vmapp.org
Login or Join
Heady270

: 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

@Heady270

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.

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Heady270

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme