Jump to content
Sign in to follow this  
juiced

Use .htaccess to create SEO for Information Pages Unlimited

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

Share this post


Link to post
Share on other sites

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

 

Out of htaccess from ultimate SEO.

Share this post


Link to post
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.

Share this post


Link to post
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

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
Sign in to follow this  

×