Autor | Zpráva | ||
---|---|---|---|
Daviart Profil |
#1 · Zasláno: 21. 6. 2011, 16:10:45 · Upravil/a: Daviart
Aho,
níže uvádím kód který používám pro přepis url, ten funguje v pořádku, ale narazil jsem. Když my fyzicky složka existuje a chtěl bych ji zobrazit přímou cestou, provede se přepis taky. Potřeboval bych, aby mi složky které existují nezahrnul do podmínky pro přepis. V .httacess moc zběhlý nejsem. # .html RewriteRule ^([^/]+).html /?str=$1 RewriteRule ^([^/]+)/([^/]+).html /?str=$1&str2=$2 # rewrite pro url RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^/]+)/?$ ?str=$1 RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^/]+)/([^/]+)?/?$ ?str=$1&str2=$2 |
||
Daviart Profil |
#2 · Zasláno: 21. 6. 2011, 16:54:56
# .html RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^/]+).html /?str=$1 RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^/]+)/([^/]+).html /?str=$1&str2=$2 # rewrite pro url RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^/]+)/?$ ?str=$1 RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^/]+)/([^/]+)?/?$ ?str=$1&str2=$2 Již opraveno |
||
Časová prodleva: 13 let
|
0