I got this fixed but how come SEO URLS are not working on articles?
This is a discussion on How to get SEO urls for articles? within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; I got this fixed but how come SEO URLS are not working on articles?...
I got this fixed but how come SEO URLS are not working on articles?
RC3 does not SEO the articles. You need to add new rules to your .htaccess to rewrite them. You can get the rules here:
oscmax2 - Google Code
Michael Sasek
osCMax Developer
osCmax Installation Service - Have our professionals install osCmax on your server - same day service!
osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5
Stay Up To Date with everything osCMax:
Free osCmax Newsletters - Security notices, New Releases, osCMax News
osCmax on Twitter - Up to the minute info as it happens. Know it first.
osCmax Documentation
Thanks Michael, but I have tried that, and its still not rewriting the articles to SEO urls. Its rewriting every thing else except the articles. Here is my .htaccess file
Code:# Ultimate SEO URLs BEGIN Options +FollowSymLinks RewriteEngine On RewriteBase / RewriteCond %{QUERY_STRING} ^options=(.*)$ RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2%1 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 ^(.*)-pm-([0-9]+).html$ info_pages.php?pages_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-i-(.*).html$ information.php?info_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-links-(.*).html$ links.php?lPath=$2&%{QUERY_STRING} # Added polls and newsdesk #RewriteRule ^(.*)-po-([0-9]+).html$ pollbooth.php?pollid=$2&%{QUERY_STRING} RewriteRule ^(.*)-n-(.*).html$ newsdesk_info.php?newsdesk_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-nc-(.*).html$ newsdesk_index.php?newsPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-nri-(.*).html$ newsdesk_reviews_info.php?newsdesk_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-nra-(.*).html$ newsdesk_reviews_article.php?newsdesk_id=$2&%{QUERY_STRING} # BOF: Faqdesk support added by faaliyet RewriteRule ^(.*)-f-(.*).html$ faqdesk_info.php?faqdesk_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-fc-(.*).html$ faqdesk_index.php?faqPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-fri-(.*).html$ faqdesk_reviews_info.php?faqdesk_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-fra-(.*).html$ faqdesk_reviews_article.php?faqdesk_id=$2&%{QUERY_STRING} # EOF: Faqdesk support added by faaliyet # Ultimate SEO URLs END
Does this require editing catalog/includes/functions/html_output.php or some other file as well?
I did some changes to my SEO URL's a while back with some help from Mindtwist in this thread:
Slight Modification of SEO URLs
It required some changes in that file. Are any other file changes required here, or is it just the .htaccess rules?
My store started with OSCMAX 2 RC3 , and I do remember that it would NOT do SEO on the articles URLs. I had to update Ultimate SEO URL for the articles to work, I do not know about RC4, but the USU version that came included with RC3 wasn't doing articles.
That is the main (maybe it was the only) reason why I updated USU long time ago, there is not enough with adding the lines on your .htaccess , because you would still need the code as I explained with NewsDesk on the other thread.
Yeah, I am stomped at this point. I have tried everything, even trying to upgrade the Ultimate SEO files. It still cannot get it to rewrite anything but the Product URLS, Category URLS, and Manufacturer URLS. It WILL NOT rewrite articles, reviews, etc.. Any help would be much appreciated!
As said, you MUST update USU with a version that works with articles, or it will not work.
The version I installed if I remember correctly was Ultimate_SEO_URLSv21d , it comes with very detailed upgrade instructions (by Chemo)
Ok, I will try upgrading to 2.1d and see if that helps. Thanks.
2.1d is the one I installed for the articles to work. I updated again (small change) to the one by yesudo from 29/Nov/2006 , so I could set by hand product and category URLs on the admin section.
And later I also installed IndependentSeoUrlValidation_v1.0.4 which comes in very handy if you change any URL, because it will redirect (301) the old URL to the new one, avoiding duplicates.
Ok, Thanks. I will keep that in mind. I have noticed that there are a lot of things regarding USU in includes/functions/html_output.php. Do i leave every thing that was already in there for USU, or replace it with the new code from the readme?
Bookmarks