Jump to content
FWR Media

ULTIMATE Seo Urls 5 - by FWR Media

Recommended Posts

Just installed this and want to complete the install. I have Google XML Sitemap and I understand I have to upload 2 files but I am unsure of the last part of the instructions. Could you possibly explain this to me or what I need to do.

 

If you are using a cron job to run the file daily/weekly etc, when you set up the cron job you use that command ( changing the ***** to correct values of course)

Share this post


Link to post
Share on other sites

Create a blank .htaccess put in it the code shown in the contribution .. upload it to site root.

 

I found the original .htaccess in my Osc installation folder in my computer and uploaded it to the root. Then, I added the code to it, but it doesn't work. here is the code in the entire .htaccess file right now. Would you please help me to take a look to see what's wrong? The setting is changed to rewrite already. Thanks so much Robert!

 

# $Id: .htaccess 1739 2007-12-20 00:52:16Z hpdl $

#

# This is used with Apache WebServers

#

# For this to work, you must include the parameter 'Options' to

# the AllowOverride configuration

#

# Example:

#

# <Directory "/usr/local/apache/htdocs">

# AllowOverride Options

# </Directory>

#

# 'All' with also work. (This configuration is in the

# apache/conf/httpd.conf file)

 

# The following makes adjustments to the SSL protocol for Internet

# Explorer browsers

 

#<IfModule mod_setenvif.c>

# <IfDefine SSL>

# SetEnvIf User-Agent ".*MSIE.*" \

# nokeepalive ssl-unclean-shutdown \

# downgrade-1.0 force-response-1.0

# </IfDefine>

#</IfModule>

 

# If Search Engine Friendly URLs do not work, try enabling the

# following Apache configuration parameter

 

# AcceptPathInfo On

 

# Fix certain PHP values

# (commented out by default to prevent errors occuring on certain

# servers)

 

# php_value session.use_trans_sid 0

# php_value register_globals 1

 

# If you are getting errors you may need to comment this out like ..

# Options +FollowSymLinks

Options +FollowSymLinks

<IfModule mod_rewrite.c>

RewriteEngine On

 

# RewriteBase instructions

# Change RewriteBase dependent on how your shop is accessed as below.

# http://www.mysite.com = RewriteBase /

# http://www.mysite.com/catalog/ = RewriteBase /catalog/

# http://www.mysite.com/catalog/shop/ = RewriteBase /catalog/shop/

 

# Change RewriteBase using the instructions above

RewriteBase /

 

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

RewriteRule ^(.*)-c-([0-9_]+).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 ^(.*)-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}

# Articles contribution

RewriteRule ^(.*)-t-([0-9_]+).html$ articles.php?tPath=$2&%{QUERY_STRING}

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

# Information pages

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

# Links contribution

RewriteRule ^(.*)-links-([0-9_]+).html$ links.php?lPath=$2&%{QUERY_STRING}

# Newsdesk contribution

RewriteRule ^(.*)-n-([0-9]+).html$ newsdesk_info.php?newsdesk_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-nc-([0-9]+).html$ newsdesk_index.php?newsPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-nri-([0-9]+).html$ newsdesk_reviews_info.php?newsdesk_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-nra-([0-9]+).html$ newsdesk_reviews_article.php?newsdesk_id=$2&%{QUERY_STRING}

</IfModule>

Share this post


Link to post
Share on other sites

I found the original .htaccess in my Osc installation folder in my computer and uploaded it to the root. Then, I added the code to it, but it doesn't work. here is the code in the entire .htaccess file right now. Would you please help me to take a look to see what's wrong? The setting is changed to rewrite already. Thanks so much Robert!

 

Did you read this bit about RewriteBase?

 

# RewriteBase instructions

# Change RewriteBase dependent on how your shop is accessed as below.

# http://www.mysite.com = RewriteBase /

# http://www.mysite.com/catalog/ = RewriteBase /catalog/

# http://www.mysite.com/catalog/shop/ = RewriteBase /catalog/shop/

Share this post


Link to post
Share on other sites

Did you read this bit about RewriteBase?

 

I'm very soooorry Robert, that I don't actually understand the whole rewritebase thing. My knowledge on this stuff is really limited. What does the RewriteBase require me to do?

Share this post


Link to post
Share on other sites

I'm very soooorry Robert, that I don't actually understand the whole rewritebase thing. My knowledge on this stuff is really limited. What does the RewriteBase require me to do?

 

In the .htaccess it has the following line ..

 

RewriteBase /

 

That needs to be changed dependent on how your site is accessed .. like ..

 

# RewriteBase instructions

# Change RewriteBase dependent on how your shop is accessed as below.

# http://www.mysite.com = RewriteBase /

# http://www.mysite.com/catalog/ = RewriteBase /catalog/

# http://www.mysite.com/catalog/shop/ = RewriteBase /catalog/shop/

 

I can't make it simpler than that .. it is in the instructions too.

Share this post


Link to post
Share on other sites

In the .htaccess it has the following line ..

 

RewriteBase /

 

That needs to be changed dependent on how your site is accessed .. like ..

 

# RewriteBase instructions

# Change RewriteBase dependent on how your shop is accessed as below.

# http://www.mysite.com = RewriteBase /

# http://www.mysite.com/catalog/ = RewriteBase /catalog/

# http://www.mysite.com/catalog/shop/ = RewriteBase /catalog/shop/

 

I can't make it simpler than that .. it is in the instructions too.

 

I got you now :-) I tried all of them, but neither worked. My website shows as http://www.mysite.com/shop/. Do you know what else I can try? I'm sorry that I'm such a pain :-(

Share this post


Link to post
Share on other sites

I got you now :-) I tried all of them, but neither worked. My website shows as http://www.mysite.com/shop/.'>http://www.mysite.com/shop/. Do you know what else I can try? I'm sorry that I'm such a pain :-(

 

Why did you try all of them?

 

If you browse to your website as http://www.mysite.com/shop/

 

then it's RewriteBase /shop/

 

Also "nether worked" tells me nothing, explain what you saw .. was it a 404 page not found? what didn't work, perhaps you should post your site for me to see.

 

Basically, from what you have said .. if that isn't working then your server does not support RewriteRules. If that is the case you have two options.

 

1) Use standard urls

2) Change hosting supplier or get them to set it up to allow RewriteRules.

Share this post


Link to post
Share on other sites

Why did you try all of them?

 

If you browse to your website as http://www.mysite.com/shop/

 

then it's RewriteBase /shop/

 

Also "nether worked" tells me nothing, explain what you saw .. was it a 404 page not found? what didn't work, perhaps you should post your site for me to see.

 

Basically, from what you have said .. if that isn't working then your server does not support RewriteRules. If that is the case you have two options.

 

1) Use standard urls

2) Change hosting supplier or get them to set it up to allow RewriteRules.

 

I got it!! It worked! Thank you sooooooooo much for all your help and patience! My website is teenyshoesmart.com. You can see it's working now :-) I'm very grateful for all your help!! You are wonderful!!

 

Sabrina

Share this post


Link to post
Share on other sites

I got it!! It worked! Thank you sooooooooo much for all your help and patience! My website is teenyshoesmart.com. You can see it's working now :-) I'm very grateful for all your help!! You are wonderful!!

 

Sabrina

 

Sabrina

 

Glad you got it going, given your level of experience I'd think twice before installing any highly complex contributions.

 

You need a meta tag contribution and I recon KissMT would suit you brilliantly, it is very powerful but, quite honestly, my grandmother could install it in 2 minutes.

Share this post


Link to post
Share on other sites

Sabrina

 

Glad you got it going, given your level of experience I'd think twice before installing any highly complex contributions.

 

You need a meta tag contribution and I recon KissMT would suit you brilliantly, it is very powerful but, quite honestly, my grandmother could install it in 2 minutes.

 

I know, my level is really elementary. I can't afford to hire someone too, so I'm banging my head trying to figure everything out. Do you know if any other contributions I need? I'll go bug those people now :-)

Share this post


Link to post
Share on other sites

I know, my level is really elementary. I can't afford to hire someone too, so I'm banging my head trying to figure everything out. Do you know if any other contributions I need? I'll go bug those people now :-)

 

Sadly KissMT is mine too :D

Share this post


Link to post
Share on other sites

Sadly KissMT is mine too :D

 

Wow! I'm happy because I know your stuff works great! I'm sorry that you have to put up with me again. I'll try my best to be better this time :D

Share this post


Link to post
Share on other sites

Well that looks like the root file product_info.php isn't there.

I thought that too...but, it's there =/.

Share this post


Link to post
Share on other sites

I thought that too...but, it's there =/.

 

Well it's not an issue of USU5, I'd need to see the site.

Share this post


Link to post
Share on other sites

Okay, sure - http://homegym365.com/store/

 

Thanks!

USU5 is creating the seo urls fine but the server is rejecting them. (not just products seo urls .. all).

 

Therefore the RewriteRules are not functioning .. either because you did not add the .htaccess code as per the instructions .. or .. your server is not set up correctly for RewriteRules (which most are).

Share this post


Link to post
Share on other sites

USU5 is creating the seo urls fine but the server is rejecting them. (not just products seo urls .. all).

 

Therefore the RewriteRules are not functioning .. either because you did not add the .htaccess code as per the instructions .. or .. your server is not set up correctly for RewriteRules (which most are).

Hmm, I thought I edited the .htaccess code properly! Maybe not...here's what I changed it to:

  # RewriteBase instructions
 # Change RewriteBase dependent on how your shop is accessed as below.
 # http://www.homegym365.com = RewriteBase /
 # http://www.homegym365.com/store/ = RewriteBase /catalog/ 
 # http://www.homegym365.com/store/ = RewriteBase /catalog/

Share this post


Link to post
Share on other sites

Hmm, I thought I edited the .htaccess code properly! Maybe not...here's what I changed it to:

  # RewriteBase instructions
 # Change RewriteBase dependent on how your shop is accessed as below.
 # http://www.homegym365.com = RewriteBase /
 # http://www.homegym365.com/store/ = RewriteBase /catalog/ 
 # http://www.homegym365.com/store/ = RewriteBase /catalog/

 

aaah no .. those with # are instructions .. related to the ..

 

RewriteBase /

 

Which is the value to be changed

Share this post


Link to post
Share on other sites

aaah no .. those with # are instructions .. related to the ..

 

RewriteBase /

 

Which is the value to be changed

Ah, yes of course they're instructions! I see now :blush: - thank you!

 

So, I change it to:

 

http://www.homegym365.com/store = RewriteBase /

Share this post


Link to post
Share on other sites

Ah, yes of course they're instructions! I see now :blush: - thank you!

 

So, I change it to:

 

http://www.homegym365.com/store = RewriteBase /

 

No

 

If to browse to your store you go to www.mysite.com/ then it is RewriteBase /

 

If to browse to your store you go to www.mysite.com/whatever/ then it is RewriteBase /whatever/

 

and it's not mysite = RewriteBase it is just ..

 

RewriteBase /whatever/

 

Please read the instructions.

Edited by FWR Media

Share this post


Link to post
Share on other sites

If you are using a cron job to run the file daily/weekly etc, when you set up the cron job you use that command ( changing the ***** to correct values of course)

 

What correct values?

 

My original command is

php ......................./tougetuning/testsite/googlesitemap/index.php

 

What values are you referring to as using for *****?

 

Also for the new command I am guessing I would change the second part to the below?

 

* * * * * * wget -q http://www.tougetuning.com/testsite/googlesitemap/index.php >/dev/null 2>&1

Edited by Stealth1

Share this post


Link to post
Share on other sites

No

 

If to browse to your store you go to www.mysite.com/ then it is RewriteBase /

 

If to browse to your store you go to www.mysite.com/whatever/ then it is RewriteBase /whatever/

 

and it's not mysite = RewriteBase it is just ..

 

RewriteBase /whatever/

 

Please read the instructions.

Thank you! It's working now - I did read the instructions but it obviously didn't register what I had to do; thanks for helping me out!

Share this post


Link to post
Share on other sites

ULTIMATE Seo Urls 5

by FWR Media

 

New - Modern - More Efficient - Faster - Compatible - Less Queries

 

Author: Robert Fisher - www.fwrmedia.co.uk

Thanks to the beta testers:

Tom Hodges-Hoyland, Jan Zonjee, toyicebear, GLCustoms

 

Requirements:

Server: *nix or Windows/IIS

 

PHP requirements:

Version: 5.2.0+ (actually 5.1.3+ I believe at time of launch)

Zlib

filter_var

SPL (Standard PHP Library)

 

Traditional Rewrite URIs require:

*nix server (Windows/IIS does not have mod_rewrite)

mod_rewrite (as part of the apache build)

AllowOveride All (php.ini setting)

 

Compatibility:

MySQL 5 (Strict Trans Tables)

Traditional rewrite uris (*nix) produce exactly the same uris as the old 2 series (assuming the same settings)

The above means that should you upgrade from 2 series you don't have to worry about changed links

Installation difficulty:

There are only eight small changes to just seven files so this is easy and quick. (2 minute "drop on top" install for devs/testers)

Simple database installer.

 

Upgrade from old series 2 seo urls:

Upgrade instructions included.

Removal script for old database entries.

Simple database installer.

 

New:

Works on Windows/IIS (BETA at time of launch due to lack of extensive testing)

Two seo uri choices .. standard and rewrite .. Windows/IIS can only use standard

error free - error_reporting(E_ALL | E_STRICT)

Modular design

Plug in modules for contributions

Simple database installer

Inbuilt uri validation

301 redirects

Custom 404 Page not found

Zero queries or database use after cache fully loaded

Cache saving is sequential rather than one big DB hit

Admin selectable debug output

File (array) based character conversion (BETA at time of launch)

Simple cache life in admin based on "cache days"

Extensive security measures to safeguard the querystring

Series 2 database removal tool

Ability to switch between uri types via admin without changing any code as below:

On: standard seo uris - rewrite seo uris

Off: standard osC uris - experimental search engine safe uris

 

Included Modules:

Products

Categories

Manufacturers

Popup image

 

Included contribution modules (ALPHA at time of release as untested):

Information Pages

Articles, Article Info

Links

Newsdesk Index, Newsdesk Info, Newsdesk Reviews Info, Newsdesk Reviews Article

 

Features Removed (from old 2 series):

Page cache compatibility - the original author suggests that this should not be installed.

 

The contribution can be found at: -

 

http://addons.oscommerce.com/info/6768

 

 

 

Hi there

 

I've just installed this excellent contrib and have a 404 error when I click on any category - this is the URL:

 

http://www.mysite.co.uk/index.php/categoryname-c-56?infoBox=0&osCsid=8fj4976ms5hsi4k5v2r5dueum6

 

Any insight would be gratefully received.

 

thanks, project2016

Share this post


Link to post
Share on other sites

Hi,

Can you help me how to add parent dir to each sections as:

mysite.com/cat1-subcat1-c-3.html -> mysite.com/productlist/cat1-subcat1-c-3.html

mysite.com/cat1-subcat2-c-4.html -> mysite.com/productlist/cat1-subcat1-c-4.html

 

mysite.com/prod1-p-1.html -> mysite.com/productdetails/prod1-p-1.html

mysite.com/prod2-p-2.html -> mysite.com/productdetails/prod2-p-2.html

 

Same with Articles, add /articlelist/ and /articledetails/

 

Thanks & best regards

Share this post


Link to post
Share on other sites

What correct values?

 

My original command is

php ......................./tougetuning/testsite/googlesitemap/index.php

 

What values are you referring to as using for *****?

 

Also for the new command I am guessing I would change the second part to the below?

 

* * * * * * wget -q http://www.tougetuning.com/testsite/googlesitemap/index.php >/dev/null 2>&1

 

***** is the time for the cron to run, in most panels you just need to add the wget bit as the times are done separately.

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

×