0
我试图表现出http://example.com/seller/samsung/about.php
下http://example.com/about.php
内容,其中三星是一个动态和不存在的文件夹。我曾尝试下面的代码:htaccess的 - 地图动态路径
RewriteRule ^seller/([^/]+)/(.*)$ ./$1
它的工作原理,当我做手工是这样的:
RewriteRule ^seller/samsung/(.*)$ ./$1
喜@anubhava,我试图展示使用此代码http://example.com/seller/samsung/about.php下的http://example.com/about.php的内容:RewriteRule^seller /([^/]+)/(.*)$ ./$1其中([^ /] +)我相信定义了一个动态路径,但它不会工作。有任何想法吗? – Carl