RewriteCond %{REQUEST_URI} ^/AAA-TARGETED-QUESTIONS-EXAMPLE.pdf$
RewriteRule ^(.*) /examples.html [L,R=301]
# Spaces are escaped as [\s]
# Other special characters are escaped by adding a backslash before the character \
# Working example with spaces and brackets escaped.
RewriteCond %{REQUEST_URI} ^/GOVT[\s]RESUME[\s]\(Assistant[\s]Secretary,[\s]SES[\s]Band[\s]1\).pdf$
RewriteRule ^(.*) /examples.html [L,R=301]
Redirect .pdf files in your .htaccess file that have spaces in the filename. Also shows example of how to escape brackets in the filename.
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.