使用htaccess的
问题描述:
我有以下网址使用htaccess的
http://www.paradox4a.com/wp-content/themes/whitetheme/custompage.php
我希望用户使用虚拟URL像
http://www.paradox4a.com/activate/
访问上面的链接定制的PHP文件重写特定网址这可能使用.htaccess rewrite_mod?
答
在你的文档根htaccess文件:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^activate/$ /wp-content/themes/whitetheme/custompage.php [L]