URLに適当な文字を入れてもページが表示されてしまいます。cssは崩れます。
Notfoundのページが用意されているので、そのページを表示したいです。
http://○○.com/ ← html表示〇 サーバー内に存在〇 css反映〇
http://○○.com/menu.html ← html表示〇 サーバー内に存在〇 css反映〇
http://○○.com/menu.html/ ← html表示〇 サーバー内に存在〇 css反映×
http://○○.com/menu/sonzaisinai ← html表示〇 サーバー内に存在× css反映×
http://○○.com/menu/sonzaisinai.html ← html表示〇 サーバー内に存在× css反映×
こんな感じです。
htaccessは
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.sasakky-dental.com)(:80)? [NC]
RewriteRule ^(.) http://sasakky-dental.com/$1 [R=301,L]
RewriteCond %{HTTPS} off
RewriteRule ^(.)$ https://sasakky-dental.com/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^./index.html
RewriteRule ^(.)index.html$ http://sasakky-dental.com/$1 [R=301,L]
ErrorDocument 404 /notfound.html
AddHandler php5.6-script .html .htm
下の階層のWordPressのディレクトリのhtaccessは
BEGIN WordPress
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase /news/ RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /news/index.php [L] </IfModule>END WordPress
です。
あなたの回答
tips
プレビュー