htaccess clean urls & replacing whitespaces and %20 with -
RewriteCond %{HTTP_HOST} ^\.dev\.site\.com$ [NC]
RewriteRule ^([^\s%20]*)(?:\s|%20)+(.*)$ $1-$2 [L,R]
RewriteRule ^Content/Publications/(.*)\.php$ https://dev.site.com/divi/publications/$1 [R=301,L]
REF : https://stackoverflow.com/questions/18935257/htaccess-clean-urls-replacing-whitespaces-and-20-with
https://stackoverflow.com/questions/5821120/301-redirect-to-replace-all-spaces-to-hyphens
No comments:
Post a Comment