I hope to learn how to do regular expressions regularly, but right now I need a little help.
I have it installed in my .htaccess. So that the request to example.doc is internally redirected to the download.php file? File = example.doc
RewriteRule ^(download.php.*) - [L]
RewriteRule ^(.+\.(doc|docx))$ download.php?file=$1
I need it to change a bit, so adding an extra request (always present) in the document is also internally rewritten and passed to php. For example: request example.doc? Verify = to rewrite download.php internally? File = example.doc & verify = whatever
Thank! Neddit
Neddy source
share