Autor | Zpráva | ||
---|---|---|---|
xciza Profil |
Ahoj,
nahrávám web na hosting "bazchem.cz" a mám problém s .htaccess souborem. Prosím o radu co v něm změnit aby mě na hostingu šel mod_rewrite? Takto vypadá .htaccess na localu, kde vše funguje: # In case you want to add a .htpasswd authentification # you'll have to add the host of the shop as an allowed entity, # so that calls from the host skip the authentification # Example: # Order Deny,Allow # Deny from All # AuthType Basic # AuthName "Access not allowed" # AuthUserFile path_to_htpasswd_file/.htpasswd # Require valid-user # Allow from localhost # Satisfy Any <IfModule mod_rewrite.c> Options +FollowSymLinks RewriteEngine On RewriteBase /Bazchem RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK) RewriteRule .* - [F] RewriteCond %{REQUEST_URI} oxseo\.php$ RewriteCond %{QUERY_STRING} mod_rewrite_module_is=off RewriteRule oxseo\.php$ oxseo.php?mod_rewrite_module_is=on [L] RewriteCond %{REQUEST_URI} !(\/admin\/|\/core\/|\/export\/|\/modules\/|\/out\/|\/setup\/|\/tmp\/|\/views\/) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule !(\.html|\/|\.jpg|\.css|\.pdf|\.doc|\.gif|\.png|\.js|\.htc)$ %{REQUEST_URI}/ [R=301,L] RewriteCond %{REQUEST_URI} !(\/admin\/|\/core\/|\/export\/|\/modules\/|\/out\/|\/setup\/|\/tmp\/|\/views\/) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule (\.html|\/)$ oxseo.php RewriteCond %{REQUEST_URI} (\/out\/pictures\/) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule (\.jpe?g|\.gif|\.png)$ core/utils/getimg.php </IfModule> # disabling log file access from outside <FilesMatch "(EXCEPTION_LOG\.txt|\.log$|\.tpl$|pkg\.rev)"> order allow,deny deny from all </FilesMatch> Options -Indexes DirectoryIndex index.php index.html Díky |
||
Kajman Profil |
#2 · Zasláno: 10. 1. 2013, 15:42:27
Je modul rewrite hostingem povolený? Není potřeba upravit či odstranit RewriteBase?
|
||
Davex Profil |
#3 · Zasláno: 10. 1. 2013, 19:06:49
xciza:
Vypadá to, že tam mod_rewrite jde. Jak se ten problém projevuje? |
||
xciza Profil |
#4 · Zasláno: 11. 1. 2013, 12:08:39
Problém vyřešen. Stačilo zakomentovat větev FilesMatch
|
||
Časová prodleva: 11 let
|
0