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šč | 1943 (1383) | MisterR |
» | URL in struktura datotek na serverjuOddelek: Izdelava spletišč | 1509 (1254) | technolog |
» | htaccess - ce obstaja - serviraj, v nasprotnem primeru ....Oddelek: Izdelava spletišč | 1125 (1045) | Lion29 |
» | mod_rewriteOddelek: Izdelava spletišč | 1241 (1183) | techfreak :) |
» | Mod rewriteOddelek: Izdelava spletišč | 1396 (1190) | bluefish |