Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Use .htaccess to create SEO for Information Pages Unlimited


juiced
 Share

Recommended Posts

Hi,

 

I've been searching and did find some related posts but haven't found a working solution yet. We are using SEO-G for our osCommerce webshop v2.2 and installed the (fantastic) contribution Information Pages Unlimited. All links are rewritten to HTML and our catalogs and products are url friendly.

 

However, we'd like to use the .htaccess functionality to also turn the "information.php?info_id" into SEO urls. Surely it must be possible to use something like this:

 

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

or

RewriteRule ^information.php?info_id=([0-9][0-9])$ root.php?$1.html&%{QUERY_STRING}

 

But neither rule is working for us. Are there any amendments we'd have to make in SEO-G or are we just using incorrect syntax with RewriteRule?

 

Any help is greatly appreciated!

 

Joost

Edited by juiced
Link to comment
Share on other sites

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

 

Out of htaccess from ultimate SEO.

 

 

Sorry, copied from the wrong file. This is the wright code.

 

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

 

 

But you allready tried that.

Link to comment
Share on other sites

Hi Job,

 

thanks for your help, but indeed your suggestion didn't make the difference. The URLs don't get processed. I suspect that maybe it only works in combination with the Ultimate SEO contribution? I think it would not make a lot of sense to remove our SEO-G contribution and replace it with something else.

 

Anyone?

 

Thanks,

 

Joost

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...