0
URLパラメータをスラッシュで変更する必要があります。URLパラメータをスラッシュ/ .htaccessファイルに変更するリダイレクトルール
私の現在の作業のURLが私のhtaccessファイルは
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
#RewriteRule ^([a-z_]+).html $1.php
RewriteRule ^([A-Za-z_-]+).html $1.php
RewriteRule ^([a-z]+)/([a-z]+)/(.*)\.html /market_material.php?ind=$3
#RewriteRule ^([A-Z]{2})/([\+a-z\ ]+)\.html$ /reports_content.php?
report_id=$1
#RewriteRule ^report/([0-9]+) /reports_content.php?report_id=$1
RewriteRule ^([0-9]+)/(.*)\.html /reports_content.php?report_id=$1
#RewriteRule ^blog/([0-9]+) /Blog-Details.php?blog=$1
#RewriteRule ^Blog-Details.html/([^/]+)?$ $1.php?blog=$2 [L]
RewriteRule ^([^.]+?)/?$ /Blog-Details.html?p=$1 [NC,L]
</IfModule>
ある
https://www.example.com/Blog-Details.php/blog/test-title
以下のように私はスラッシュでパラメータを変換するには、この行を追加し、それを変更する必要が
https://www.example.com/Blog-Details.php?blog=test-title
です
RewriteRule ^([^.]+?)/?$ /Blog-Details.html?p=$1 [NC,L]
内部サーバーエラー500 – Vinothini