Forum » Programiranje » mod_rewrite - prosim za nasvet
mod_rewrite - prosim za nasvet
kitewing ::
Spletno stran sem prestavil na drug strežnik in mi na novem ne delajo linki z istim mod_rewrite.
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.*) [NC]
RewriteRule ^(.*) http://%1/$1 [R=301,QSA,L]
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
Prosim za pomoč.
Hvala
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.*) [NC]
RewriteRule ^(.*) http://%1/$1 [R=301,QSA,L]
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
Prosim za pomoč.
Hvala
Gandalfar ::
in kaj error_log pravi?
A se ti sploh izvede .htaccess?
A se ti sploh izvede .htaccess?
Zgodovina sprememb…
- spremenil: Gandalfar ()
kitewing ::
V logu ni nič uporabnega. htacess se izvede, samo podstran ne pokaže, ostane na prvi strani.
Rewrite-an link v url-ju se sicer izpiše.
debug pravi:
debugging info
1 RewriteEngine on
2 RewriteBase /
3 RewriteCond %{HTTP_HOST} ^www\.(.*) [NC] This condition was not met
4 RewriteRule ^(.*) http://%1/$1 [R=301,QSA,L] This rule was not met because one of the conditions was not met
5 RewriteCond $1 !^(index\.php|resources|robots\.txt) This variable is not supported: $1
6 RewriteCond %{REQUEST_FILENAME} !-f This variable is not supported: %{REQUEST_FILENAME}
7 RewriteCond %{REQUEST_FILENAME} !-d This variable is not supported: %{REQUEST_FILENAME}
8 RewriteRule ^(.*)$ index.php/$1 [L,QSA] This rule was not met because one of the conditions was not met
Nobene ideje?
Rewrite-an link v url-ju se sicer izpiše.
debug pravi:
debugging info
1 RewriteEngine on
2 RewriteBase /
3 RewriteCond %{HTTP_HOST} ^www\.(.*) [NC] This condition was not met
4 RewriteRule ^(.*) http://%1/$1 [R=301,QSA,L] This rule was not met because one of the conditions was not met
5 RewriteCond $1 !^(index\.php|resources|robots\.txt) This variable is not supported: $1
6 RewriteCond %{REQUEST_FILENAME} !-f This variable is not supported: %{REQUEST_FILENAME}
7 RewriteCond %{REQUEST_FILENAME} !-d This variable is not supported: %{REQUEST_FILENAME}
8 RewriteRule ^(.*)$ index.php/$1 [L,QSA] This rule was not met because one of the conditions was not met
Nobene ideje?
Zgodovina sprememb…
- spremenil: kitewing ()
petzup ::
Probaj se malo poigrat pa daj v rewritecond celoten naslov domene, meni je to večkrat pomagalo.
kitewing ::
carota ::
Vredno ogleda ...
Tema | Ogledi | Zadnje sporočilo | |
---|---|---|---|
Tema | Ogledi | Zadnje sporočilo | |
» | brez .html končniceOddelek: Izdelava spletišč | 1911 (1351) | MisterR |
» | URL in struktura datotek na serverjuOddelek: Izdelava spletišč | 1463 (1208) | technolog |
» | htaccess - ce obstaja - serviraj, v nasprotnem primeru ....Oddelek: Izdelava spletišč | 1093 (1013) | Lion29 |
» | mod_rewriteOddelek: Izdelava spletišč | 1203 (1145) | techfreak :) |
» | Mod rewriteOddelek: Izdelava spletišč | 1374 (1168) | bluefish |