.htaccess - url rewrite rule for urls that contain // in them -


ive got bit of issue site indexed google. seo people have pointed out domain has been indexed double // @ end of domain portion , causing duplicate records in google. have checked server side components , appears configured correctly.

example

www.domainname.com//shop/products

this renders quite nicely on screen, seo guys reporting issue.

rewriterule ^//(.+)$ /$1 [r=301,nc,l] 

is rule have applied, there appears no change in browser, still generates www.domainname.com//shop/products

we using helicon ape product rewrites wondering if should visible user on screen or handled on server side?

you can try :

rewriteengine on rewritecond %{the_request} //([^\s]+) [nc] rewriterule ^ /%1 [r,l] 

Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -