0
我有以下網址使用htaccess的
http://www.paradox4a.com/wp-content/themes/whitetheme/custompage.php
我希望用戶使用虛擬URL像
http://www.paradox4a.com/activate/
訪問上面的鏈接定製的PHP文件重寫特定網址這可能使用.htaccess rewrite_mod?
我有以下網址使用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]