Use mod_rewrite to force users to homepage when entering a site?
Posted
by
scotru
on Server Fault
See other posts from Server Fault
or by scotru
Published on 2012-06-06T08:42:38Z
Indexed on
2012/06/06
10:43 UTC
Read the original article
Hit count: 151
apache2
|mod-rewrite
Is it possible to use mod_rewrite to force all users entering a site (either through a link from another site, or by typing a URL in the address bar) to be redirected to the homepage? From the homepage (or any page within the site), users should then be able to access other pages in the site. But all users would be forced to enter the site through the homepage. Can this be done with mod_rewrite (or without using a scripting language)?
© Server Fault or respective owner