Forum Moderators: phranque
Options ExecCGI +FollowSymLinks
RewriteEngine On
RewriteBase /store/
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}
Now my links mod has links such as [mysite.com...]
can anyone help me with this so they also go to the html urls, or at least maybe the parentid thing gone to shorten the url?
PLease and thank you in advance.
The problem is that you need to get OScommerce --or its "SEF" plug-in-- to output the friendly URLs on your pages.
Once these friendly URLs appear on your pages, then the mod_rewrite code above will rewrite requests for those URLs to the OSC scripts in /store.
Jim
What I am wanting to do is make the links manager urls shorter, friendlier, html if possible like the seo by chemo does for the products and categories are for the rest of the site. I have searched for information on changing the links managers urls to friendlier ones but there is nothing.
Anything to get rid of the long url I have now. When you click a category now this is what you see.
[mysite.com...]
Im not really sure why the parentid was put into this mod. It never changes to anything else but parentid=0.
If just doing a rewrite rules would help im all for it. I just do not know how to do that. If its a modification of the link files, I am up for that as well. I just want to have all links search engine, and human friendly. At this point, I will do what ever it takes. Thank you again.
*After* you make those on-page links shorter/friendlier, only then can mod_rewrite be used -- to change the shorter/friendlier links *back* to the long form that is needed to invoke OSC to generate the next page.
See this thread [webmasterworld.com] (and others) in our library.
Jim