Post by mrlips » Wed Dec 14, 2011 2:49 am

hey, i have a small problem, when i try to use seo urls, some of my products are not found anymore, it has the perfect url for my product but the products is not found in opencart.

did anyone ever notice this?

let me know.

thanks a lot

New member

Posts

Joined
Sun Dec 19, 2010 3:51 pm

Post by uksitebuilder » Wed Dec 14, 2011 4:42 am

Make sure that the SEO Keyword for products, categories, info page and brands is entered without spaces or special characters apart from underscores or dashes

i.e.

alpha-numeric_is_good-1

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by mrlips » Wed Dec 14, 2011 9:24 pm

well, thats what i did check this url http://my-sex-toys.net/shop/california-girl-doll , for me it looks good, when i use seo urls it does not work, as soon i use the normal urls all works fine

New member

Posts

Joined
Sun Dec 19, 2010 3:51 pm

Post by uksitebuilder » Wed Dec 14, 2011 10:39 pm

It looks like SEO URLs may currently be disabled when I checked your site.

Have SEO URLs ever worked ?

Checklist
-------------
1. You have enabled SEO URLs in admin System - Settings Server tab ?
2. You have enabled the .htaccess file by renaming the .htaccess.txt file to .htaccess ?
3. Your web server runs apache with mod_rewrite anabled ?

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by mrlips » Thu Dec 15, 2011 7:32 pm

well, atm seo urls are not enabled because the products are not found when enabled. but when enabled , yes to all your points

New member

Posts

Joined
Sun Dec 19, 2010 3:51 pm

Post by uksitebuilder » Thu Dec 15, 2011 8:00 pm

Have you also edited .htaccess to change the following line

RewriteBase /

to

RewriteBase /shop/

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by mrlips » Fri Dec 16, 2011 8:48 am

yes, my .htacces is edited like in the tutorial explained, some of the products work when seo urls activated but the most don't , it was working before, afterwords i did edit the keywords a bit and now this :(

New member

Posts

Joined
Sun Dec 19, 2010 3:51 pm

Post by 3wcorner » Fri Dec 16, 2011 1:58 pm

can you post sample to products that are found, VS products that are not found?

Always a pleasure
Manny E.
3w.


New member

Posts

Joined
Sat Dec 18, 2010 12:27 am

Post by mrlips » Fri Dec 16, 2011 3:25 pm

good point , i will enable seo urls for some time and try 2 find example for both cases

my-sex-toys.net/shop/dildos/double-dongs?product_id=188936 - this 1 works :P

http://my-sex-toys.net/shop/dildos/clon ... n-the-dark this 1 not


well now i notice myself, that not all my products have keywords :( the once with keywords on the product don't work the other w/o are working) dam, and the module i used for generating this keywords is not abled to make all of them, it allways stops after a while :(

New member

Posts

Joined
Sun Dec 19, 2010 3:51 pm

Post by uksitebuilder » Fri Dec 16, 2011 5:45 pm

Looks like mod_rewrite may not be enabled on your server if you have correctly specified the RewriteBase in .htaccess

As a test, edit .htaccess

after RewriteBase /shop/ add the following line

RewriteRule ^test$ /index.php?route=information/contact [L]

Then try entering http://my-sex-toys.net/shop/test in your browser.

It should put you on the contact page. If not, then you will need to contact your host and get them to enable mod_rewrite

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by 3wcorner » Fri Dec 16, 2011 10:28 pm

i agree, that is 1 possibility.
can you PM me, i will try my best to help.

Always a pleasure
Manny E.
3w.


New member

Posts

Joined
Sat Dec 18, 2010 12:27 am

Post by mrlips » Sat Dec 17, 2011 6:30 pm

i did call my host and they told me that they did enabled mod_rewrite but its still not working :(

New member

Posts

Joined
Sun Dec 19, 2010 3:51 pm

Post by mrlips » Sat Dec 17, 2011 6:31 pm

i also did add this line to the .htaccess but i end up in my forum :(

New member

Posts

Joined
Sun Dec 19, 2010 3:51 pm

Post by uksitebuilder » Sat Dec 17, 2011 8:01 pm

It is now a little clearer what is happening.

I am guessing you have a .htaccess in your root (where your forum is) this may be messing with the rewriting for your shop directory.

Can you please post the content of both htaccess files so we can fix it for you

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by mrlips » Sat Dec 17, 2011 9:12 pm

thats the .htaccess from my forum:

Code: Select all

Options -MultiViews +FollowSymlinks -Indexes

#
# If mod_security is enabled, attempt to disable it.
# - Note, this will work on the majority of hosts but on
#   MediaTemple, it is known to cause random Internal Server
#   errors. For MediaTemple, please remove the block below
#
<IfModule mod_security.c>
	# Turn off mod_security filtering.
	SecFilterEngine Off

	# The below probably isn't needed, but better safe than sorry.
	SecFilterScanPOST Off
</IfModule>

#
# MyBB "search engine friendly" URL rewrites
# - Note, for these to work with MyBB please make sure you have
#   the setting enabled in the Admin CP and you have this file
#   named .htaccess
#
<IfModule mod_rewrite.c>
	RewriteEngine on
	RewriteRule ^forum-([0-9]+)\.html$ forumdisplay.php?fid=$1 [L,QSA]
	RewriteRule ^forum-([0-9]+)-page-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2 [L,QSA]

	RewriteRule ^thread-([0-9]+)\.html$ showthread.php?tid=$1 [L,QSA]
	RewriteRule ^thread-([0-9]+)-page-([0-9]+)\.html$ showthread.php?tid=$1&page=$2 [L,QSA]
	RewriteRule ^thread-([0-9]+)-lastpost\.html$ showthread.php?tid=$1&action=lastpost [L,QSA]
	RewriteRule ^thread-([0-9]+)-nextnewest\.html$ showthread.php?tid=$1&action=nextnewest [L,QSA]
	RewriteRule ^thread-([0-9]+)-nextoldest\.html$ showthread.php?tid=$1&action=nextoldest [L,QSA]
	RewriteRule ^thread-([0-9]+)-newpost\.html$ showthread.php?tid=$1&action=newpost [L,QSA]
	RewriteRule ^thread-([0-9]+)-post-([0-9]+)\.html$ showthread.php?tid=$1&pid=$2 [L,QSA]

	RewriteRule ^post-([0-9]+)\.html$ showthread.php?pid=$1 [L,QSA]

	RewriteRule ^announcement-([0-9]+)\.html$ announcements.php?aid=$1 [L,QSA]

	RewriteRule ^user-([0-9]+)\.html$ member.php?action=profile&uid=$1 [L,QSA]

	RewriteRule ^calendar-([0-9]+)\.html$ calendar.php?calendar=$1 [L,QSA]
	RewriteRule ^calendar-([0-9]+)-year-([0-9]+)\.html$ calendar.php?action=yearview&calendar=$1&year=$2 [L,QSA]
	RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)\.html$ calendar.php?calendar=$1&year=$2&month=$3 [L,QSA]
	RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)-day-([0-9]+)\.html$ calendar.php?action=dayview&calendar=$1&year=$2&month=$3&day=$4 [L,QSA]
	RewriteRule ^calendar-([0-9]+)-week-(n?[0-9]+)\.html$ calendar.php?action=weekview&calendar=$1&week=$2 [L,QSA]

	RewriteRule ^event-([0-9]+)\.html$ calendar.php?action=event&eid=$1 [L,QSA]

	<IfModule mod_env.c>
		SetEnv SEO_SUPPORT 1
	</IfModule>
</IfModule>

#
# If Apache is compiled with built in mod_deflade/GZIP support
# then GZIP Javascript, CSS, HTML and XML so they're sent to
# the client faster.
#
<IfModule mod_deflate.c>
	AddOutputFilterByType DEFLATE application/javascript text/css text/html text/xml
</IfModule>
Thats the .htaccess from my shop :

Code: Select all

AddHandler php52-cgi .php
# 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|log)">
 Order deny,allow
 Deny from all
</FilesMatch>

# SEO URL Settings
RewriteEngine On
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/ 

RewriteBase /shop/
RewriteRule ^test$ /index.php?route=information/contact [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
php_flag magic_quotes_gpc off
php_value register_globals 0
php_flag open_basedir off


### 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 any of the following settings, 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

# 2. If your cart has magic quotes enabled, This may work to disable it:
# php_flag magic_quotes_gpc Off

# 3. Set max upload file size. Most hosts will limit this and not allow it to be overridden but you can try
# php_value upload_max_filesize 999M

# 4. set max post size. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value post_max_size 999M

# 5. set max time script can take. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value max_execution_time 200

# 6. set max time for input to be recieved. Uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value max_input_time 200
php_value memory_limit 128M
i hope u guys can help .

New member

Posts

Joined
Sun Dec 19, 2010 3:51 pm

Post by mrlips » Wed Dec 21, 2011 5:50 pm

no solution for this problem?

New member

Posts

Joined
Sun Dec 19, 2010 3:51 pm

Post by uksitebuilder » Wed Dec 21, 2011 7:15 pm

This is only educated guesswork, but please try the following - Backup these files first.

Change your root .htaccess to:

Code: Select all

Options -MultiViews +FollowSymlinks -Indexes

#
# If mod_security is enabled, attempt to disable it.
# - Note, this will work on the majority of hosts but on
#   MediaTemple, it is known to cause random Internal Server
#   errors. For MediaTemple, please remove the block below
#
<IfModule mod_security.c>
   # Turn off mod_security filtering.
   SecFilterEngine Off

   # The below probably isn't needed, but better safe than sorry.
   SecFilterScanPOST Off
</IfModule>

#
# MyBB "search engine friendly" URL rewrites
# - Note, for these to work with MyBB please make sure you have
#   the setting enabled in the Admin CP and you have this file
#   named .htaccess
#
<IfModule mod_rewrite.c>
   RewriteEngine on
   RewriteBase /
   RewriteRule ^forum-([0-9]+)\.html$ forumdisplay.php?fid=$1 [L,QSA]
   RewriteRule ^forum-([0-9]+)-page-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2 [L,QSA]

   RewriteRule ^thread-([0-9]+)\.html$ showthread.php?tid=$1 [L,QSA]
   RewriteRule ^thread-([0-9]+)-page-([0-9]+)\.html$ showthread.php?tid=$1&page=$2 [L,QSA]
   RewriteRule ^thread-([0-9]+)-lastpost\.html$ showthread.php?tid=$1&action=lastpost [L,QSA]
   RewriteRule ^thread-([0-9]+)-nextnewest\.html$ showthread.php?tid=$1&action=nextnewest [L,QSA]
   RewriteRule ^thread-([0-9]+)-nextoldest\.html$ showthread.php?tid=$1&action=nextoldest [L,QSA]
   RewriteRule ^thread-([0-9]+)-newpost\.html$ showthread.php?tid=$1&action=newpost [L,QSA]
   RewriteRule ^thread-([0-9]+)-post-([0-9]+)\.html$ showthread.php?tid=$1&pid=$2 [L,QSA]

   RewriteRule ^post-([0-9]+)\.html$ showthread.php?pid=$1 [L,QSA]

   RewriteRule ^announcement-([0-9]+)\.html$ announcements.php?aid=$1 [L,QSA]

   RewriteRule ^user-([0-9]+)\.html$ member.php?action=profile&uid=$1 [L,QSA]

   RewriteRule ^calendar-([0-9]+)\.html$ calendar.php?calendar=$1 [L,QSA]
   RewriteRule ^calendar-([0-9]+)-year-([0-9]+)\.html$ calendar.php?action=yearview&calendar=$1&year=$2 [L,QSA]
   RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)\.html$ calendar.php?calendar=$1&year=$2&month=$3 [L,QSA]
   RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)-day-([0-9]+)\.html$ calendar.php?action=dayview&calendar=$1&year=$2&month=$3&day=$4 [L,QSA]
   RewriteRule ^calendar-([0-9]+)-week-(n?[0-9]+)\.html$ calendar.php?action=weekview&calendar=$1&week=$2 [L,QSA]

   RewriteRule ^event-([0-9]+)\.html$ calendar.php?action=event&eid=$1 [L,QSA]

   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteRule ^([^?]*) /shop/index.php?_route_=$1 [L,QSA]

   <IfModule mod_env.c>
      SetEnv SEO_SUPPORT 1
   </IfModule>
</IfModule>

#
# If Apache is compiled with built in mod_deflade/GZIP support
# then GZIP Javascript, CSS, HTML and XML so they're sent to
# the client faster.
#
<IfModule mod_deflate.c>
   AddOutputFilterByType DEFLATE application/javascript text/css text/html text/xml
</IfModule>
Change your /shop/ .htaccess to:

Code: Select all

AddHandler php52-cgi .php
# 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

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

php_flag magic_quotes_gpc off
php_value register_globals 0
php_flag open_basedir off


### 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 any of the following settings, 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

# 2. If your cart has magic quotes enabled, This may work to disable it:
# php_flag magic_quotes_gpc Off

# 3. Set max upload file size. Most hosts will limit this and not allow it to be overridden but you can try
# php_value upload_max_filesize 999M

# 4. set max post size. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value post_max_size 999M

# 5. set max time script can take. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value max_execution_time 200

# 6. set max time for input to be recieved. Uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value max_input_time 200
php_value memory_limit 128M

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by mrlips » Thu Dec 22, 2011 2:47 am

i did change the .htaccess like you told me , it is still not working ? Is there anything else what i can do, should i change the oc version?

New member

Posts

Joined
Sun Dec 19, 2010 3:51 pm
Who is online

Users browsing this forum: No registered users and 351 guests