conor
New Member
hi,
I am trying to set a directory index and the code that I am using doesn't seem to work.
I want anyone who searches for http://blank.com to be redirected to http://blank.com/index.php?page=Home
Does anyone know how I can achieve this?
Thanks
I am trying to set a directory index and the code that I am using doesn't seem to work.
Code:
RewriteEngine on
RewriteCond %{SCRIPT_NAME} !\.php
RewriteRule ^([^./]*)$ /index.php?page=$1 [L]
directoryIndex /index.php?page=Home
I want anyone who searches for http://blank.com to be redirected to http://blank.com/index.php?page=Home
Does anyone know how I can achieve this?
Thanks