Forum Moderators: phranque
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.(.*)
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
#
RewriteEngine on
RewriteRule ^Folder%20with%20three%20spaces/page.htm$ - [G]
I tried it with the %20 and with spaces, also with a "\" at the end of the URL, but with no success.
I can't remember which of these will do it, but one of them will:
RewriteRule ^Folder\ with\ three\ spaces/page\.htm$ - [G]
#
RewriteCond %{REQUEST_URI} ^Folder\ with\ three\ spaces/page\.htm$
RewriteRule ^Folder - [G]
#
RewriteCond %{REQUEST_URI} ^Folder\%20with\%20three\%20spaces/page\.htm$
RewriteRule ^Folder - [G]
#
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /Folder\%20with\%20three\%20spaces/page\.htm\ HTTP/
RewriteRule ^Folder - [G]
The URL-paths seen by RewriteRule, by RewriteCond in %{REQUEST_URI}, and by RewriteCond in %{THE_REQUEST} undergo various degrees of un-encoding, from most to least, respectively.
Jim