mod_rewrite problem
 
Kajter 15. mar 2013 21:29:56 Pridružen od:
17. nov 2008
130 objav
14 9 0
#1

Spletno stran sem prestavil na drug strežnik in mi na novem ne delajo linki z istim mod_rewrite.



V logu ni nič uporabnega. htacess se izvede, samo podstran ne pokaže, ostane na prvi strani.



debugging info

1 RewriteEngine on


2 RewriteBase /


3 RewriteCond %{HTTPHOST} ^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: %{REQUESTFILENAME}

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



Prosim za kakšen namig. Hvala


všeč(0) ni všeč(0) spam(0)
 
Kajter 16. mar 2013 07:47:27 Pridružen od:
17. nov 2008
130 objav
14 9 0
#2

Nobene ideje?


všeč(0) ni všeč(0) spam(0)
 
SlimDeluxe 16. mar 2013 13:06:35 Pridružen od:
29. apr 2010
1223 objav
1022 144 9
#3

Probaj zakomentirati vrstico 5 pa poglej če ti naredi normalen rewrite na index.php

Edino ta vrstica mi je čudna, ostale so definitivno pravilne.

Aja, pa še poglej v phpinfo če se v $SERVER sploh nastavi REQUESTFILENAME, vem da so neke posebnosti pri URI handlingu na določenih web strežnikih.


všeč(0) ni všeč(0) spam(0)
Freelance Web Developer
 
sebastjan 23. apr 2013 06:15:28 Pridružen od:
10. feb 2013
259 objav
274 319 27
#4

dodaj tole v 1. vrstico:



Options +FollowSymLinks


všeč(0) ni všeč(0) spam(0)
CoinJoker.com
 
 

🔒 Za odgovor na to temo se moraš prijaviti.

Prijavi se