Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Ultimate SEO URLs


webstarter

Recommended Posts

Posted

Hello there I have managed to do most of these contribution but I hav now come stuck. I've got to this bit but I'm a bit confused with what I need to do and where to create the folder ect........

 

STEP #6 - Edit .htaccess file (in your catalog directory)

 

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!

 

Any body that has tried this contribution or any one that is able to help me at this stage I would be very great full.

 

Regards

Ian :thumbsup:

Posted
Hello there I have managed to do most of these contribution but I hav now come stuck. I've got to this bit but I'm a bit confused with what I need to do and where to create the folder ect........

 

STEP #6 - Edit .htaccess file (in your catalog directory)

 

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!

 

Any body that has tried this contribution or any one that is able to help me at this stage I would be very great full.

 

Regards

Ian :thumbsup:

 

The instructions are very clear and I'm finding it hard to think of a clearer way of explaining.

 

.htaccess is in the catalog folder if you use a folder and in root if you do not.

 

Chemo gives 2 examples of code to add to .htaccess.

 

One for use when the shop is in root ..

RewriteBase /

 

and one for when the shop files are in a folder.

RewriteBase /catalog/

where "catalog is the name of the folder where your shop files reside.

 

At to .htaccess the relevant one for you.

Posted

Sorry I still don't understand :blush: I have gone into catalog but can not find a file named .htaccess the only one I came across was in admin

 

So do I need to create one in catalog then put the information from the first box into it ? :blink:

Posted

Hello I'm very stuck with this contribution I have gone through all the information of what I need to do. I'm now stuck as I mentioned before on area step 6.

 

I'm now on step 6 and I'm confused to what I need to do. I have oscommerce do I create a folder in catalog I'm not really sure what I need to do. If you could please help me that would be great. Thank You Regards Ian :blush:

 

 

STEP #6 - Edit .htaccess file (in your catalog directory)

 

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!

 

 

Options +FollowSymLinks

RewriteEngine On

RewriteBase /directory/

 

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pi-(.*).html$ popup_image.php?pID=$2&%{QUERY_STRING}

RewriteRule ^(.*)-t-(.*).html$ articles.php?tPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-a-(.*).html$ article_info.php?articles_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pr-(.*).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pri-(.*).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-i-(.*).html$ information.php?info_id=$2&%{QUERY_STRING}

 

If your store is located in the root add this to the /.htaccess file:

 

Options +FollowSymLinks

RewriteEngine On

RewriteBase /

 

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pi-(.*).html$ popup_image.php?pID=$2&%{QUERY_STRING}

RewriteRule ^(.*)-t-(.*).html$ articles.php?tPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-a-(.*).html$ article_info.php?articles_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pr-(.*).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pri-(.*).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-i-(.*).html$ information.php?info_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-links-(.*).html$ links.php?lPath=$2&%{QUERY_STRING}

Posted
Sorry I still don't understand :blush: I have gone into catalog but can not find a file named .htaccess the only one I came across was in admin

 

So do I need to create one in catalog then put the information from the first box into it ? :blink:

Not all shops have a .htaccess file. If yours doesn't, just create one, insert the supplied code and upload, assuming you are not on a Windows server.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted
Not all shops have a .htaccess file. If yours doesn't, just create one, insert the supplied code and upload, assuming you are not on a Windows server.

 

Jack

 

Thank you Jack do I have to create a folder like a .php folder named and save as htaccess.php ? then insert the text from the first box see below into the folder named htaccess.php then change Rewritebase /directory to Rewritebase / catalog ?

 

Options +FollowSymLinks

RewriteEngine On

RewriteBase /directory/

 

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pi-(.*).html$ popup_image.php?pID=$2&%{QUERY_STRING}

RewriteRule ^(.*)-t-(.*).html$ articles.php?tPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-a-(.*).html$ article_info.php?articles_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pr-(.*).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pri-(.*).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-i-(.*).html$ information.php?info_id=$2&%{QUERY_STRING}

Posted

I replied to your pm but before reading this post.

 

create a file in catalog and name it .htaccess

 

That's <DOT>htaccess

 

NOT htaccess.php

Posted

I have added the folder .htaccess then I went to do a test on my web site when I go to a product I get this

 

Not Found The requested URL was not found on this server.

 

If I go into admin and turn enable seo urls to false then my web site works like normal but it does not change the urls :angry:

Posted

I think you are nearly there, just sent a final PM.

Posted

Fantastic that is it is all working. You would not realise how long I have been working on what some people say simple contribution. I'm really happy thank you to everyone that has helped me and especially to Babygurgles. :D :D :rolleyes:

 

I think you are nearly there, just sent a final PM.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...