Page 1 of 1

no .htaccess file

Posted: Sun Feb 14, 2010 12:44 pm
by dawwoz
Hey!!!

I would like to activate seo urls, but i haven't go correct .htaccess file. Has it anybody? I'm waiting for help.
Greetings from Poland.

Re: no .htaccess file

Posted: Sun Feb 14, 2010 4:16 pm
by Brent
The .htaccess file in the upload should work.
Have you enable url alias in the admin/settings.
That must be enabled first.

If so, what kind of error or problem are you having.
Also, mod rewrite must be enabled. ?

Re: no .htaccess file

Posted: Mon Feb 15, 2010 3:23 pm
by dawwoz
In the zip package I couldn't find an example of .htaccess file. Thus my problem, but I've resolved it. I downloaded the .htaccess from opencart and after small change it works with alegrocart.

RewriteRule ^(.*)\?*$ index.php?controller=$1 [L,QSA]

Re: no .htaccess file

Posted: Mon Feb 15, 2010 4:19 pm
by Brent
The .htaccess is located inside the upload folder just above common.php

Here is the code if you have any other questions.

Code: Select all

# Uncomment this to ensure that register_globals is Off
#php_flag register_globals Off

# URL Alias - see install.txt
# Prevent access to .tpl
<Files ~ "\.tpl$">
Order allow,deny
Deny from all
</Files> 

Options +FollowSymlinks

<IfModule mod_rewrite.c>
RewriteEngine On

# Uncomment this if your URL is not directly related to the physical file paths.
# RewriteBase /store/   if store is directory cart is in, eg: www/store/cart
RewriteBase /

#AlegroCart REWRITES START
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php/$1 [L,QSA]
#AlegroCart REWRITES END

</IfModule>
#Try if you have problems with url alias
#RewriteRule ^(.*) index.php [L,QSA]

# Focus on one domain - Uncomment to use
#RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC]
#RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]

Re: no .htaccess file

Posted: Wed Jan 04, 2012 2:38 am
by Rankexperts
can you explain this problem. I can not the understand your problem with the details that you have provide.