i have strange problem google indexing unstyled version of homepage. uri results in problem "root host"/index.php/"subpage". example www.website.com/index.php/photos cause problem.
to rectify i've created following htaccess directive redirect permutation of url homepage:
rewriteengine on rewritecond %{request_filename} !-d rewritecond %{request_filename}\.php -f rewriterule ^(.*)$ $1.php [l] redirect 301 /index.php^(.*)$ /
the redirect works, reason first section causes redirect ignored.
redirect directive not support regex. looking redirectmatch .
redirectmatch ^/index\.php/(.*)$ /
Comments
Post a Comment