Autor | Zpráva | ||
---|---|---|---|
Kahy Profil * |
#1 · Zasláno: 13. 12. 2007, 14:04:18
Zdravím všechny,
potřeboval bych na webu zprovoznit hezká URL, ale nemůžu si editovat .htaccess sám. Proto jsem požádal svého hostéra o zapsání níže uvedených příkazů do .htaccess, ale nečekaně to nefungovalo. Používám CMS Made Simple a na free hostingu, kde můžu editovat .htaccess mi tento zápis bez problému jede. Nejsem si jistý, ale myslím si že to má nějakou spojitost s umístěním souboru.htaccess a pravidlem RevriteBase /. Absolutní cesta k webu je /net/www/html/www.priklad.cz. Nepomohl by mi s tím prosím někdo? Options +FollowSymLinks RewriteEngine on RewriteBase / # 301 Redirect all requests that don't contain a dot or trailing slash to # include a trailing slash RewriteCond %{REQUEST_URI} !/$ RewriteCond %{REQUEST_URI} !\. RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L] # Rewrites urls in the form of /parent/child/ # but only rewrites if the requested URL is not a file or directory RewriteCond %{REQUEST_FILENAME} !-f [NC] RewriteCond %{REQUEST_FILENAME} !-d [NC] RewriteRule ^(.+)$ index.php?page=$1 [QSA] Díky |
||
Str4wberry Profil |
#2 · Zasláno: 13. 12. 2007, 15:24:50
Odpovídám Kahymu:
Popis nečekaně to nefungovalo je moc obecný — zkus to upřesnit. Mohl by ale vadit řádek: Options +FollowSymLinks |
||
Kahy Profil * |
#3 · Zasláno: 13. 12. 2007, 15:37:51
Str4wberry
Nefungovalo to tak, že v prohlížeči byla hláška Bad request a nic. |
||
Kahy Profil * |
#4 · Zasláno: 13. 12. 2007, 15:43:23
Neměl bych třeba změnit pravidlo RevriteBase / na RevriteBase / html, když absolutní cesta k webu je /net/www/html/www.priklad.cz
|
||
Taps Profil |
#5 · Zasláno: 13. 12. 2007, 17:16:25
Kahy
No můžeš to zkusit |
||
Str4wberry Profil |
#6 · Zasláno: 15. 12. 2007, 00:51:23
Odpovídám Kahy:
A co takhle to „RewriteBase /“ úplně vyhodit? |
||
Časová prodleva: 16 let
|
0