Jump to content
spidometrs

[CONTRIBUTION] Ultimate SEO URLs v2.1 - by Chemo

Recommended Posts

someone knows the solution for my problem?

thanks!!!

Check the rewrite base in your htaccess. I'm using Xampp and my test store is in folder Catlog3. My rewrite base is /Catalog3/.

 

HTH

Share this post


Link to post
Share on other sites

Hi folks.

 

I am wondering about the possibility of a feature in Ultimate SEO :-"

 

I would like that instead of -p-productID.html the page would be -p-PRODUCTCODE

 

I am sure this is possible but probably neds quite a lot of coding :D. (yes i do know the ID is important in the generation of the url)

 

If someone has any ideas on this please let me know! ( PM/email whatever )

Share this post


Link to post
Share on other sites

I searched and searched but I couldn't find a solution already posted on the forum

 

When I select a manufacurer on the main page it lists the products for the manufacturer but it has the manufacturers id.

 

Like this:

http://www.mydomain.com/index.php?manufacturers_id=13

 

But when I try to click on page '2' of the products or 'next page' it goes back to the main page and gives me this:

 

http://www.mydomain.com/index.php?page=2&a...me=briggs-riley

 

Can someone please tell me what is wrong or at least tell me what file I should be looking at!

 

Thank you - Thank You - Thank You!!!!

Share this post


Link to post
Share on other sites

Hi, can anyone help me with step 5, editing my .htaccess file? I would appreciate it!! I really don't understand the directions.

 

If you don't have an .htaccess file in your catalog directory create one.

 

If your store is located in a DIRECTORY add this to the /*directory*/.htaccess file:

 

NOTE: you will have to edit the "directory" to match your directory name!

 

1) I copied over my .htaccesss file from my public_html/ file, is that right?

2) Then what am I supposed to do?

 

I appreciate any and all info regarding this. I'm really stuck!

 

Thanks, Jason

Share this post


Link to post
Share on other sites

Jason, you only need to copy the lines from the .htaccess file that comes with Ultimate SEO to YOUR .htaccess file located in your /var/www/html/catalog_directory/

Share this post


Link to post
Share on other sites

Thanks George, I guess that's where I'm having problems. Where is this:

 

/var/www/html/catalog_directory/ ?

 

I appreciate it!

 

Jason

Share this post


Link to post
Share on other sites

Help I'm getting a 404 error!! And this is a live store! When I click on a product I also get this as a URL:

 

http://www.subcitizen.com/superstitious-p-72.html

 

Superstitious is the name of the product however I don't know what p-72 is.

 

I don't know if I edited my .htaccess page correctly or there was something else in the instructions under step 4 that said

 

"N.B. Admin general.php file" I don't know what that means, so I didn't do anything.

 

Please help. I need to correct this is a live store!!

 

Thank You So Much,

Jason

Share this post


Link to post
Share on other sites

Why do my pages have a "-p-71" on them. Actually the number changes depending on the product. But why is that? Thanks, Jason

Share this post


Link to post
Share on other sites

A bit of redundancy I suppose:

 

404 PAGE ERROR: When I open up a new browser and go to a store running SEO Url's the first product I would choose would give a 404 Page Error. If I would go back to the referring page and click that same product again, all worked fine.

 

FIX: Set 'Force Cookie Use' to True seemed to fix the problem. :thumbsup:

Share this post


Link to post
Share on other sites

A bit of redundancy I suppose:

 

404 PAGE ERROR: When I open up a new browser and go to a store running SEO Url's the first product I would choose would give a 404 Page Error. If I would go back to the referring page and click that same product again, all worked fine.

 

FIX: Set 'Force Cookie Use' to True seemed to fix the problem. :thumbsup:

Share this post


Link to post
Share on other sites

A bit of redundancy I suppose:

 

404 PAGE ERROR: When I open up a new browser and go to a store running SEO Url's the first product I would choose would give a 404 Page Error. If I would go back to the referring page and click that same product again, all worked fine.

 

FIX: Set 'Force Cookie Use' to True seemed to fix the problem. :thumbsup:

Share this post


Link to post
Share on other sites

Okay, I am still stumped.... I have poured over the code and still can't figure out what is wrong....

 

When I select a manufacturer it pulls up all of the product for the manufacturer, and lists the manufacturers id number as in: http://www.domain.com/index.php?manufacturers_id=13

 

When I select a category from the page it lists the products from that manufacturer in that category and looks like this: http://www.domain.com/index.php?manufactur...mp;filter_id=45

 

When I click on the "next page" of products for that manufacturer I get this:

http://www.domain.com/index.php?page=2&amp...=hewlet-packard

but it takes me back to the main page and not page 2

 

I want it to appear with the manufacturer name on ALL of the pages.

 

Is this an:

index.php issue

functions/general issue

html_output issue

something I haven't thought of yet?????

 

I am on a windows server so htaccess won't help me, I am not using the rewrite method I am using the cname/pname method so the best I can figure is that I am missing a definition somewhere for the manufacturer id to manufacturer name. I don't have a clue where to find it.

 

I am php challenged so please help.....

 

please.....

 

plese.....

 

pls.....

 

p.... :'(

Share this post


Link to post
Share on other sites
Check the rewrite base in your htaccess. I'm using Xampp and my test store is in folder Catlog3. My rewrite base is /Catalog3/.

 

HTH

 

my store is in folder shop and i'm sure my rewrite base is /shop/

but the problem still happens,any idea?

Share this post


Link to post
Share on other sites
my store is in folder shop and i'm sure my rewrite base is /shop/

but the problem still happens,any idea?

 

In xampp\apache\conf\httpd.conf:

 

Approx. line #118 make sure it reads like this:

LoadModule rewrite_module modules/mod_rewrite.so

 

Find this at approx line #202:

# This should be changed to whatever you set DocumentRoot to.

 

Look for these lines in that section.

 

Approx. line #224 should read like this:

AllowOverride All

 

Line #230:

Allow from all

 

That's all I changed in mine and it works for me.

HTH

Share this post


Link to post
Share on other sites
Why do my pages have a "-p-71" on them. Actually the number changes depending on the product. But why is that? Thanks, Jason

Jason,

 

The "-p-71" is equivalent to the "&products_id=71" in the normal dynamic URL.

 

Every product, category, manufacturer (and so on) have their own id. OsCommerce uses the id to locate the information from the correct table in the database. SEO URLs, by default, appends the id to the end of the 'filename' and use -p-, -c-, -m- (and so on) to tell which table the id is referring to.

 

Hope this helps.

-Skittles

Share this post


Link to post
Share on other sites

here's my file,it's same with before, so how can i change this?

thanks HTH

# This should be changed to whatever you set DocumentRoot to.
#
<Directory "C:/Program Files/xampp/htdocs">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important.  Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks Includes ExecCGI

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
#
AllowOverride All

#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all

</Directory>

#

Share this post


Link to post
Share on other sites
Thanks George, I guess that's where I'm having problems. Where is this:

 

/var/www/html/catalog_directory/ ?

 

I appreciate it!

 

Jason

 

If you still havent figured it out, that directory is on your server ( the name can varry ).

Share this post


Link to post
Share on other sites
here's my file,it's same with before, so how can i change this?

thanks HTH

# This should be changed to whatever you set DocumentRoot to.
#
<Directory "C:/Program Files/xampp/htdocs">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important.  Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks Includes ExecCGI

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
#
AllowOverride All

#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all

</Directory>

#

 

 

Did you make sure to change line #118 to load the rewrite module? Make sure it doesn't have the comment # in front of it.

Share this post


Link to post
Share on other sites

I have quotes in some product names, like this "my product".

 

So it rewrites them like this 34my-product34.

 

How does this affect the SE seeing and ranking them? Does this hurt them in any way? Should I remove punctuation marks from the product and category names?

 

Thanks for any help!

Share this post


Link to post
Share on other sites
Did you make sure to change line #118 to load the rewrite module? Make sure it doesn't have the comment # in front of it.

 

thanks.i have removed # in front of line 118 and it works,but still have problem when click on any category and product

Object not found!

The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.

If you think this is a server error, please contact the webmaster.
Error 404
localhost
03/22/07 13:17:39
Apache/2.2.3 (Win32) DAV/2 mod_ssl/2.2.3 OpenSSL/0.9.8d mod_autoindex_color PHP/5.2.0

 

how to solve? thanks a lot

Share this post


Link to post
Share on other sites

opps,sorry,i didn't solve my problem,i comment out line 118 , put the seo code below to my .htaccess and i still get problem

Server error!

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

If you think this is a server error, please contact the webmaster.
Error 500
localhost
03/22/07 14:54:17
Apache/2.2.3 (Win32) DAV/2 mod_ssl/2.2.3 OpenSSL/0.9.8d mod_autoindex_color PHP/5.2.0

 

# Ultimate SEO URLs BEGIN
Options +FollowSymLinks
RewriteEngine On 
RewriteBase /shop/

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-m-([0-9]+).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pi-([0-9]+).html$ popup_image.php?pID=$2&%{QUERY_STRING}
RewriteRule ^(.*)-t-([0-9]+).html$ articles.php?tPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-a-([0-9]+).html$ article_info.php?articles_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pr-([0-9]+).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pri-([0-9]+).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-i-([0-9]+).html$ information.php?info_id=$2&%{QUERY_STRING}
# Ultimate SEO URLs END

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×