i have external links site referrer pages file extension , trailing slash after e.g.
http://example.com/folder/page.php/
i can not change these links, 301 redirect links format instead:
http://example.com/folder/page/
i've tried this, doesn't work:
rewriterule ^(.*)\.php\/$ /$1/ [r=301,l] any appreciated.
try in /.htaccess file
rewriteengine on rewritecond %{the_request} /([^.]+)\.php/? [nc] rewriterule ^ /%1/ [nc,r,l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^([^/]+)/?$ /$1.php [l,nc]
Comments
Post a Comment