Diskuse

Téma: Odstranění html z URL

Zdravím,
chtěl jsem odstranit z URL *.html, v core.php upravím řádek:
define('_rewrite_ext', '.html');na
define('_rewrite_ext', '');ale nevím co udělat v .htacess
RewriteEngine On
RewriteRule ^(.*)\.p(.*)\$ /index.php?p=$2 [L,QSA]
RewriteRule ^(.*)\.a(.*)\$ /index.php?a=$2 [L,QSA]

Nefunguje. Nevíte co s tím?
postZaslat odpověď
u me maka tohle:Options +FollowSymlinks
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/([0-9a-zA-Z\.\-]*)\.(p|a)([0-9]*)$ [NC]
RewriteRule ([a-zA-Z.-]*)\.p([0-9]*)$ /index.php?p=$2 [L,QSA]
RewriteRule ([a-zA-Z.-]*)\.a([0-9]*)$ /index.php?a=$2 [L,QSA]
Díky šlape to.