| Autor | Zpráva | ||
|---|---|---|---|
| petty Profil * |
#1 · Zasláno: 19. 11. 2008, 16:22:09
Zdravim,
mám následující zápis .htaccess: RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_URI} !\.[[:alnum:]]+$
RewriteRule ^(.+[^/])$ /$1/ [QSA,R=301]
RewriteRule ^([^/]+)/$ /$1.php [QSA,L]
Ale nevím si rady s tím, jak upravit tento zápis pro to, abych mohl změnit například adresu novinky.php?id=1 na /novinky/1/. Díky za pomoc |
||
| Andre Profil |
#2 · Zasláno: 20. 11. 2008, 14:36:35 · Upravil/a: Andre
Zkus:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^novinky/([^/]+)/?$ novinky.php?id=$1
|
||
|
Časová prodleva: 17 let
|
|||
0