Cytat
RewriteEngine on
#RewriteBase /swipi
RewriteRule ^profile/([^-]*)\.html$ ./index.php?mode=view_profile&login=$1 [L,QSA]
#html to php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} (.*)\.html
RewriteRule ^(.+)\.html(\?.*)? $1.php$2 [E=WasHTML:yes]
RewriteCond %{ENV:WasHTML} ^yes$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)\.php(\?.*)? $1.html$2
#RewriteBase /swipi
RewriteRule ^profile/([^-]*)\.html$ ./index.php?mode=view_profile&login=$1 [L,QSA]
#html to php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} (.*)\.html
RewriteRule ^(.+)\.html(\?.*)? $1.php$2 [E=WasHTML:yes]
RewriteCond %{ENV:WasHTML} ^yes$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)\.php(\?.*)? $1.html$2
Działa, ale. No właśnie jak wczytuje thema to nie cofa się o folder wcześniej i nie pobiera .css i obrazków. Jak zrobić żeby przez .htaccess cofnąć się o folder wcześniej bez zmian w plikach cms.