Forum Moderators: phranque
ie. [domain.com...]
I want to be able to use this url with the following link:
[domain.com...]
Thank you in advance for anyone that can help.
# Externally redirect direct HTTP client requests for dynamic URL to static URL
RewriteCond %{THE_REQUEST} ^[A-Z]+\ /module\.php\?([^&]+&)*page=Help&?
RewriteRule ^module\.php$ http://www.example.com/Help? [R=301,L]
#
# Internally rewrite static URL requests to the module.php script
RewriteRule ^Help$ /module.php?page=Help [L]
[edited by: eelixduppy at 8:19 pm (utc) on Mar. 1, 2009]
[edit reason] disabled smileys [/edit]
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^([^/]+)/ [domain.com...] [NC]
That is, the target should be an internal filepath, not another URL.
By including a domain name, the code you have posted in your last post is for a 302 redirect, not a rewrite.
Add [L] to the end of the rule.
See also: [webmasterworld.com...]