Zrobiłem na swoim forum mod_rewrite i wszystko działa
Problem mam taki że nie przekierowywuje a nowe adresy .htm tylko wciąż zostaje .php
Jak zrobić żeby było wszystko na .htm?
mój plik .htaccess:
Kod
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} (.*)\.htm
RewriteRule ^(.+)\.htm(\?.*)? $1.php$2 [E=WasHTML:yes]
RewriteCond %{ENV:WasHTML} ^yes$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)\.php(\?.*)? $1.htm$2
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} (.*)\.htm
RewriteRule ^(.+)\.htm(\?.*)? $1.php$2 [E=WasHTML:yes]
RewriteCond %{ENV:WasHTML} ^yes$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)\.php(\?.*)? $1.htm$2