RewriteRule for query string
Posted by: loonatsea
Posted on: 2009-01-01 14:56:00
I can't seem to get a RewriteRule to work to convert from WordPress default URL formats (including query strings like ?p=100) to the format that MovableType uses, the URL that points clearly to an actual file.
I want to go from:
http://mysite.com/?p=100
to:
http://mysite.com/old-wp-urls/p/file-name-for-p100.html
I’ve simplified all the way to this:
RewriteRule ^/?p=100$ /old-wp-urls/p/100/file-name-for-p100.html [R,L]
but it just does not seem to get applied. The file path is correct and the destination file exists.
My root index.html file has a Refresh command. Thinking this might get in the way of the RewriteRule, I removed it but then the system acts like this index file is missing even though it shouldn't need it and still does not map to the one I’m asking for.
Any help is greatly appreciated ~ thanks.