我需要這個問題上需要幫助,我目前使用這個htaccess文件htaccess的URL重寫和路徑還原
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule^http://%1%{REQUEST_URI} [R=301,L,NE]
RewriteCond %{THE_REQUEST} \s/+(?:index\.php)?\?show=([^\s&]+) [NC]
RewriteRule^/%1? [R=302,L]
Header set X-UA-Compatible "IE=Edge,chrome=1"
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?show=$1 [L,QSA]
當我打開這個網址:
www.domain.com/index.php?show=about
它顯示這是網址:
www.domain.com/about
我需要能夠顯示一個頁面,其內容隨變量而變化, 可以說,我得到了
www.domain.com/index.php?show=page&title=android
www.domain.com/index.php?show=page&title=ios
應顯示以下網址
www.domain.com/android
www.domain.com/ios
這是可以做到與htaccess的?
非常感謝前手
任何人都知道如何去做我需要的東西? – anonimoo90