| | |
| Stránka: 1 z 1
| [ Príspevkov: 3 ] | |
Autor | Správa |
---|
Registrovaný: 06.12.06 Prihlásený: 21.02.15 Príspevky: 183 Témy: 59 |
caute potreboval by som malu radu ako zmenit pravidlo v .htaccess
RewriteEngine on
RewriteBase /web
RewriteCond %{QUERY_STRING} ^strana=([^&]+)$
RewriteRule ^index.php$ %1.html? [R=301,L]
RewriteRule ^([^/]+).html index.php?rw=1&strana=$1 [L,QSA]
teraz pouzivam toto a to spravi z
Kód: www.web.sk/index.php?strana=novinky a vznikne toto Kód: www.web.sk/novinky.html a chcem aby URL vyzerala bez toho html Kód: www.web.sk/novinky
diky za radu
|
|
Registrovaný: 30.05.06 Prihlásený: 08.10.14 Príspevky: 1756 Témy: 35 Bydlisko: BA - WESTSIDE | Napísal p360t: 24.08.2009 11:44 | |
|
Nie som si istý (už som trochu zabudol, ako to funguje), ale toto by mohlo byť ono: Kód: RewriteEngine on RewriteBase /web RewriteCond %{QUERY_STRING} ^strana=([^&]+)$ RewriteRule ^index.php$ %1.html? [R=301,L] RewriteRule ^([^/]+) index.php?rw=1&strana=$1 [L,QSA]
_________________
A. S. Tanenbaum píše: The terms LF, MF, and HF refer to low, medium, and high frequency, respectively. Clearly, when the names were assigned, nobody expected to go above 10 MHz, so the higher bands were later named the Very, Ultra, Super, Extremely, and Tremendously High Frequency bands. Beyond that there are no names, but Incredibly, Astonishingly, and Prodigiously high frequency (IHF, AHF, and PHF) would sound nice. |
|
Registrovaný: 06.12.06 Prihlásený: 21.02.15 Príspevky: 183 Témy: 59 | Napísal autor témy Punker661: 24.08.2009 11:48 | |
|
diky ale uz som nato prisiel .. takto to funguje
Kód: RewriteEngine On RewriteBase /web RewriteCond %{QUERY_STRING} ^strana=([^&]+)$
RewriteRule ^index\.php$ %1? [R=301,L] RewriteRule ^([^/]+)/?$ index.php?rw=1&strana=$1 [L,QSA]
|
|
| Stránka: 1 z 1
| [ Príspevkov: 3 ] | |
| Nemôžete zakladať nové témy v tomto fóre Nemôžete odpovedať na témy v tomto fóre Nemôžete upravovať svoje príspevky v tomto fóre Nemôžete mazať svoje príspevky v tomto fóre
|
|