I'm actually using php to send a "301 Moved Permanently" header and redirects users to a easy-read address:
www.mywebsite.com
to www.mywebsite.com/home
is there a way to do that with Apache ?
User is requesting a url
Server reads the .htaccess file and prepares the right page (
/mywebsite/home/index.html
instead of/mywebsite/index.html
)It sends the page and appropriate headers used to warn the browser that the new URL is
www.mywebsite.com/home
(not to use any JavaScript)
RewriteRule ^/$ /home [L,R=301]
;) – Fabio Cicerchia