Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- Search and replace in apache htaccess a RewriteRule


lucy24 - 12:03 am on Dec 12, 2012 (gmt 0)


Well, "parameter" is the key word, because I get the impression it isn't being read as a parameter (Query String in htaccess-speak).

What is your "real" page?
http://example.com/some-perma-links.html/some-image
is not the name of an actual file on your actual server. The extension .html would come at the very end of any "real" filename. All the intervening / are directories and I really doubt you have a directory called something.html.

:: insert boilerplate about directory paths and the part of the URL up through "example.com" ::

So something is already being rewritten. You can't simply add another RewriteRule without knowing what the existing rules are and what they do. Otherwise it would be a simple matter of

RewriteRule ^([^%]*)%3F([^%]*)%3D([^%]*)$
http://www.example.com$1?$2=$3 [R=301,L,NE]
or even
RewriteRule ^([^%]*)%3Ffull%3D(\d+)$
http://www.example.com$1?full=$2 [R=301,L,NE]

and I can tell you right now that neither of those will work.


Thread source:: http://www.webmasterworld.com/apache/4523850.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com