我在使用我的ReWrite代碼時遇到了一些麻煩。請注意,.htaccess文件是子域中的文件夾(...的public_html /子/).htaccess ModReWrite幫助
我只是試圖重寫一個頁面請求:
http://subdomain.mysite.com/home
http://subdomain.mysite.com/index.php?page=home
我的.htaccess文件看起來是這樣的。 ..
RewriteEngine On
RewriteRule ^/([A-Za-z0-9\-\_])$ /index.php?page=$1
有什麼東西會跳出來嗎?
請不要給基於想法的答案。你的答案應該被測試。 – Starx 2012-11-06 06:22:42