URL rewriting – SEO Friendly URLs in sunshop shopping cart
Hello Friends,
I am working with sunshop shopping cart and my client needs seo friendly urls instead of Query string(parameters) passed in urls. By default in sunshop shopping cart, URLS are not seo friendly. I searched for url rewriting options but finally i found how to do make seo friendly urls in sunshop shopping cart.
SEO Friendly urls should look like this and may be you are looking for this kind of solution.
2) Category Page url should be like http://www.example.com/shop/category-name.html
3) Product Page url should be like http://www.example.com/shop/product-name.html
By default it shows something like this.
For Pages http://www.example.com/shop/index.php?l=page_view&p=aboutus
For Category – http://www.example.com/shop/index.php?l=product_list&c=1
For Product - http://www.example.com/shop/index.php?l=product_details&c=1.
Sunshop provide the feature using which you can make seo friendly urls for your shop. But nobody gave clear idea how to do this.
Sunshop provide Generate HTML pages feature under Setting section in admin using which we can generate category pages and products pages as HTML and as per our choices url. So you can make them seo friendly. (They provide options that if you want page name , category name and product name in their url than all pages will be generates as per page name , category name and product name).
1) Login in to admin section
2) Click on settings tab in top navigation
3) Click on Generate HTML Pages under setting section at left side
4) Generate html page as per your needs
5) Now click on setting tab at top
6) Click on Shop Settings tab
7) Find HTML Pages option and make them On(Static HTML)
Thats it. Now look at frontend. You will find all seo friendly urls as per html generated.
To know more about programming,JavaScript issues,jQuery,Expression Engine,MYSQL database,php info,php editor,programming php,Open-source,php help and php script , subscribe to our feed by entering email address below. You will get updates via email about every tutorial posted on this site . It will not take more than a sec.






I am
about 2 years ago
It was interesting to read this article and I hope to read a new article about this subject in your site in the near time.
about 2 years ago
It was interesting to read this article and I hope to read a new article about this subject in your site in the near time.
about 2 years ago
hi
i have any dynamic page like this in my site:
http://mirsoft.net/detail.php?siteid=433
how can i change to this : http://mirsoft.net/detail-433.html by .htaccess file.
thanks.
about 2 years ago
hi
i have any dynamic page like this in my site:
http://mirsoft.net/detail.php?siteid=433
how can i change to this : http://mirsoft.net/detail-433.html by .htaccess file.
thanks.
about 2 years ago
Hello abbas,
Here is a simple htaccess rule for above redirection.
Rewriterule ^details-(.*).html$ details.php?siteid=$1
Above rule will be general rule for any site id.
For e.g if your site contain dynamic page like http://mirsoft.net/detail.php?siteid=333
than you need to write link in html : http://mirsoft.net/detail-333.html
This rule will redirect this page to details.php?siteid=333.
Hope this helps.
about 2 years ago
Hello abbas,
Here is a simple htaccess rule for above redirection.
Rewriterule ^details-(.*)\.html$ details.php?siteid=$1
Above rule will be general rule for any site id.
For e.g if your site contain dynamic page like http://mirsoft.net/detail.php?siteid=333
than you need to write link in html : http://mirsoft.net/detail-333.html
This rule will redirect this page to details.php?siteid=333.
Hope this helps.
about 2 years ago
How can i delete all generated html pages and back to dynamical urls?
Thanks,
Artyom
about 2 years ago
How can i delete all generated html pages and back to dynamical urls?
Thanks,
Artyom
about 2 years ago
You have to delete html pages by logging into control panel or FTP program. But if you make the static pages OFF from Shop setting section than site will have dynamic urls and it will not call static pages anymore.
about 2 years ago
You have to delete html pages by logging into control panel or FTP program. But if you make the static pages OFF from Shop setting section than site will have dynamic urls and it will not call static pages anymore.
about 2 weeks ago
Hello,
I have Sunshop Shopping Cart. Under the category page format, the default is:
{category_name}-{category_id}-{page}.html
Is there a problem if I change this to:
{category_name}.html
I am not sure why I would need category id and page show up on a static link. Am I missing something? Can I still do a 301 redirect in this scenario?
Same question for product page format. Default is:
{category_name}/{product_name}-{product_id}.html
Can I change to:
{category_name}/{product_name}.html
Thanks!