| Autor | Zpráva | ||
|---|---|---|---|
| frídek45 Profil * |
#1 · Zasláno: 18. 1. 2012, 10:11:19
Dobrý den,
snažím se přes httacess odstranit duplicitní adresy. Bohužel se mi nedaří přesměrovat adresu www.pscmest.eu/index.php na www.pscmest.eu. Pomůžete mi? Děkuji RewriteEngine On
RewriteBase /
RewriteRule http://www.pscmest.eu/vyhledavani-psc http://www.pscmest.eu [R=301]
# přesměrování na variantu s www a odstranění index.php
RewriteCond %{HTTP_HOST} =pscmest.eu
RewriteRule ^index\.php|(.*)$ http://www.pscmest.eu/$1 [R=301,L]
# přesměrování na URL bez parametru
RewriteCond %{QUERY_STRING} ^page=([^&]+)$
RewriteRule ^index\.php|$ %1? [R=301,L]
# neexistujícím souborům podstrčit skript index.php
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+)$ index.php?rw=1&page=$1 [L,QSA]
# php_flag allow_url_fopen on |
||
| Davex Profil |
#2 · Zasláno: 19. 1. 2012, 18:30:09
Použij první pravidlo pro odstranění indexu z mého příspěvku htaccess - pořadí pravidel.
|
||
|
Časová prodleva: 15 let
|
|||
0