Configuration of .htaccess

Hi,
I need to help with configuration of .htaccess on server. I have this .htaccess on localhost a everything is OK:

# 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

What should I change in the .htacces on server?

Thank you

Hi,

you mean you used this .htaccess successfully on your testing environment and moved your shop to the live server now, is that right?

Basically, you just have to adapt the RewriteBase. What error message/warning do you get?

Regards

Yes, that’s right. I have this error:
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Apache/2.2.22 (Gentoo) mod_ssl/2.2.22 OpenSSL/1.0.0i PHP/5.3.11-pl0-gentoo Server at www.bazchem.cz Port 80

I tried “RewriteBase /” But it is not working

Hi,

[QUOTE=xciza;113025]
I tried “RewriteBase /” But it is not working[/QUOTE]

Well it depends. On your localhost you had RewriteBase /Bazchem for the folder. RewriteBase / shall only work if the shop is situated in the doc root.

I reckon that your hosting provider doesn’t allow an own .htaccess or some parts of it like FollowSymlinks. Best would be to talk to him…

Regards