I am trying to redirect users requesting a root index.php
I was using Redirect 301 /index.php http://mywebsite/junk/index.html
while this works ok IF people only request index.php,
but now i am getting many requests
for index.php++++ (sometimes more ++ than others)
is there something I can add to Redirect 301 /index.php
to include redirecting index.php+++ ?
Asked
Active
Viewed 56 times
1
1 Answers
1
You can use mod_rewrite
for regex capabilities and finer control:
RewriteEngine On
RewriteRule ^index\.php http://mywebsite/junk/index.html [L,R]

anubhava
- 761,203
- 64
- 569
- 643
-
is there a way to do it without a error 404 getting generated ? – sp2014 Jan 17 '14 at 21:49