mam taki htaccess:
Kod
Options FollowSymLinks
RewriteEngine On
DirectoryIndex index.php
RewriteBase /
RewriteCond %{REQUEST_URI} !^/index.php
RewriteRule ^([^,]*)/([^,]*)/([^,]*).html$ index.php?page=$1&cat=$2&id=$3 [L]
RewriteRule ^([^,]*)/([^,]*)?/$ index.php?page=$1&cat=$2 [L]
RewriteRule ^(.*)?/$ index.php?page=$1
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
RewriteEngine On
DirectoryIndex index.php
RewriteBase /
RewriteCond %{REQUEST_URI} !^/index.php
RewriteRule ^([^,]*)/([^,]*)/([^,]*).html$ index.php?page=$1&cat=$2&id=$3 [L]
RewriteRule ^([^,]*)/([^,]*)?/$ index.php?page=$1&cat=$2 [L]
RewriteRule ^(.*)?/$ index.php?page=$1
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
i ładnie działa, ale chciałbym zrobić, że na końcu nie musi być "/". Wygooglowałem że trzeba dać pytajnik za slashem, ale jak zmienię to:
Kod
RewriteRule ^(.*)?/$ index.php?page=$1
na to:
Kod
RewriteRule ^(.*)/?$ index.php?page=$1
to nie ładuje mi styli. Mam ustawiony base href odpowiednio, ale nie pomaga. Czy tylko zmiana na linki bezpośrednie może pomóc ?