first if someone founds a better title…go for it!
The question is, i’m trying to setup mod rewrite so that all these are translated to
http:// mysite/phpnuget/nuget/metadata.php
preserving the query string parameters
- http:// mysite/phpnuget/nuget/$metadata
- http:// mysite/phpnuget/nuget/$metadata/wetheaverdirstructure
- http:// mysite/phpnuget/nuget/$metadata/
- http:// mysite/phpnuget/nuget/$metadata?wetheaver=parameter
- http:// mysite/phpnuget/nuget/$metadata/wetheaverdirstructure?wetheaver=parameter
- http:// mysite/phpnuget/nuget/$metadata/?wetheaver=parameter
I doged for hours through the internet with various tests but not one of the tenth i tryed worked…
(the space before mysite is only to allow posting on Stackoverflow… think it does not exists!)
Can someone give me some hint?
Thank you,
Enrico
(Changed the title)
You may try this:
It will map silently any URL like this one:
http://mysite.com/phpnuget/nuget/$metadata/anythingTo:
http://mysite.com/phpnuget/nuget/metadata.phpremoving the lastanythingsegment.If the incoming URL holds a query, it will be appended to
metadata.phpautomatically in query format. i.e.?this=is&a=queryJust in case, there is NO need for the QSA flag.
To make the substitution URL permanent and visible, replace the last [L] with [L,R=301]