Removing Double Slashes From URLs
I was having a problem with one of my sites where, for reasons unknown, WordPress was inserting an unwanted extra backslash after the domain name. For example,
garyharvey.net//whatever
I searched far and wide for the answer but my online friend Frank of C-4.us has sent me the answer. It’s in this page…
In brief, just add this to your .htaccess file…
# Remove multiple slashes anywhere in URL
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
RewriteRule . %1/%2 [R=301,L]
- Apple on the design patent suit against Samsung in Germany again for banning
- Small enterprise marketing ideas for maximum traffic generation to your site
- What it Takes to Design High Converting Landing Pages
- How Can You Select a Custom Writing Service For Writing An Essay On Your Topic?
- Get Low Cost Wedding Dresses With Designer Looks–On the line!
Tagged with: double slashes • multiple slashes • wordpress double slashes
Filed under: Personal Blog
Like this post? Subscribe to my RSS feed and get loads more!
Gary Harvey has been helping people make money online since 2000 through his 