开发者

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?

开发者 https://www.devze.com 2023-01-11 09:03 出处:网络
Example www开发者_开发技巧.domainname.com/page-param1-param2.html ...it will work fine but www.domainname.com/page-param-1-param2.html

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

0

精彩评论

暂无评论...
验证码 换一张
取 消