0 レビュー
0 回答
php-特定のページの.htaccessurlの書き換え
phpのURLを書き直すのに助けが必要です。現在のURLは
ですhttps://www.websitename.com/testi o.php?name_of_link.html
そして私は好きです
https://www.websitename.com/ testi / name_of_link.html
要するにo.php?は/
に変換されます私の.htaccessファイルは以下のとおりです:
RewriteEngine On RewriteBase / #force ssl RewriteCond %{HTTPS} !=on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] #404 error page ErrorDocument 404 /404.html #rewrite pages from php top html and sitemap from php to xml RewriteRule ^(.*)\.html$ $1.php [nc] RewriteRule ^sitemap.xml$ sitemap.php [L]
誰かが私を助けてくれますか?
わからない
同様の質問
私たちのウェブサイトで同様の質問で答えを見つけてください。