我需要重写此:使用文字斜杠作为参数之后 - htaccess的
http://example.com/new/location/
到:
http://example.com/new.php?p=location
顺便说一下它可能后新是什么/例如,我需要:
http://example.com/new/anything
实际上是:
http://example.com/new.php?p=anything
但我需要保持URL结构与斜线的搜索引擎优化和安全的目的
我怎么能做到这一点使用的.htaccess?
在我的htaccess的香港专业教育学院目前有:
RewriteEngine on
RewriteBase /dir/
感谢
[Apache的可能重复重写规则URL参数](https://stackoverflow.com/questions/9754787/apache-rewriterule-with-url-parameters) – rickdenhaan