New answers tagged

0

RewriteRule ^/this%20file.pdf http://www.example.com/ The URL-path matched by the RewriteRule pattern (regex) is already %-decoded. So, to match an encoded space (ie. %20) in the request you match against a literal space in the regex. (Aside: If you try to match a literal %20 here then you are matching against a doubly-encoded space, ie. %2520, in the ...


4

The mod_alias Redirect directive uses prefix-matching and everything after the match is copied onto the end of the target URL. You can use RedirectMatch (which uses a regex as opposed to simple prefix-matching) to match a specific URL. However, since Magento already uses mod_rewrite directives (as part of the front-controller pattern) in .htaccess you should ...


Top 50 recent answers are included