In htaccess if the like have as symbol '-' and same time the parameter also having '-' that time url is not working how to solve this?
Example
www开发者_开发技巧.domainname.com/page-param1-param2.html
...it will work fine but
www.domainname.com/page-param-1-param2.html
... here param one have the data like param-1 this time url is not working.
How do I get this to work?
Looks like you should use a different syntax, perhaps - there's no way to tell whether it should interpret the "1" as part of the first parameter or not. Alternatively, you could escape the - in "param-1" by encoding the - as "%2D" (no quotes).
So for example, your link would be: http://www.domainname.com/page-param%2D1-param2.html
精彩评论