1

domain.ca/keyword.html と入力すると、domain.ca/keyword.php を使用してレンダリングする必要がありますが、そうではありません。これが私のhtaccessファイルにあるすべてです。

Options +FollowSymLinks
Options -Indexes

RewriteEngine On
RewriteBase /   

RewriteRule ^(.*)\.html$ $1.php [NC]

RewriteCond %{REQUEST_URI} !^/robots.txt$ [NC]
RewriteCond %{REQUEST_URI} robots\.txt [NC]
RewriteRule .* http://domain.ca/robots.txt [R=301,L]
4

0 に答える 0