Post by Memnoch » Mon Feb 28, 2011 6:52 am

Here is my problem, I have SEO URLS on but when I put anything into the box in the admin panel, for products it runs into a 404 error.

When I use it in the catagory menu, it will again do the 404 error for any products under that catagory.

I have the file .htaccess
when i look at the file here is the code

Code: Select all

RewriteEngine off
<IfModule mod_suphp.c>
	suPHP_ConfigPath /home/alan868/public_html/php.ini
	<Files php.ini>
		order allow,deny
		deny from all
	</Files>
</IfModule>
Is it supposed to be off? Could that be the problem?
Any help would be great.

Newbie

Posts

Joined
Wed Feb 09, 2011 7:17 am

Post by SXGuy » Mon Feb 28, 2011 7:06 am

it should be set to On yes.

Active Member

Posts

Joined
Sun Nov 08, 2009 2:07 am

Post by Memnoch » Mon Feb 28, 2011 9:29 am

That did not help.

Anything I put in the seo keyword section is just coming up in the url, and not going to the proper page, with the correct seo keyword as the url.

Newbie

Posts

Joined
Wed Feb 09, 2011 7:17 am

Post by JAY6390 » Mon Feb 28, 2011 9:33 am

It's not working because this isn't the OC htaccess file. Check the .htaccess.txt file that comes with OC and put that code in your htaccess file

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by Memnoch » Mon Feb 28, 2011 10:48 am

Can you tell me where i can find that file, please?

Newbie

Posts

Joined
Wed Feb 09, 2011 7:17 am

Post by JAY6390 » Mon Feb 28, 2011 10:50 am

Download the latest release, then in the "upload" folder should be a file called .htaccess.txt

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by okansayin » Tue Mar 01, 2011 3:15 am

the server must support mod_rewrite apache, this ask server company

Çiçek Kapında Flower Delivery Web Page, Turkey

Thank you Opencart


User avatar
New member

Posts

Joined
Fri Feb 11, 2011 1:10 am
Location - Turkey

Post by JAY6390 » Tue Mar 01, 2011 4:36 am

It doesn't matter if mod rewrite is enabled or not if you don't have the rewrite code to send it to OC

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by brianp » Tue Mar 01, 2011 7:30 am

I'm having a problem, too. There is no htaccess file in the current download of opencart. Can someone just post the code here?

New member

Posts

Joined
Sat Feb 26, 2011 11:17 pm

Post by JAY6390 » Tue Mar 01, 2011 8:15 am

FYI I just downloaded this from the latest release,it's definitely there, in the "upload" folder called ".htaccess.txt"

Code: Select all

# 1.To use URL Alias you need to be running apache with mod_rewrite enabled. 

# 2. In your opencart directory rename htaccess.txt to .htaccess

# For any support issues please visit: http://www.opencart.com

Options +FollowSymlinks

# Prevent Directoy listing 
Options -Indexes

# Prevent Direct Access to files
<FilesMatch "\.(tpl|ini)">
 Order deny,allow
 Deny from all
</FilesMatch>

# SEO URL Settings
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]


### Additional Settings that may need to be enabled for some servers 
### Uncomment the commands by removing the # sign in front of it.
### If you get an "Internal Server Error 500" after enabling, then restore the # as this means your host doesn't allow that.

# 1. If your cart only allows you to add one item at a time, it is possible register_globals is on. This may work to disable it:
# php_flag register_globals off

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by brianp » Tue Mar 01, 2011 10:23 am

Duh, I thought it was just htaccess.txt . . . the .htaccess.txt meant my computer was making it invisible. Didn't even occur to me.

New member

Posts

Joined
Sat Feb 26, 2011 11:17 pm
Who is online

Users browsing this forum: No registered users and 85 guests