CS-Cart Permalinks
on October 23rd, 2009 | CS-Cart, E-commerce, Solutions
I wanted to have nice, clean, friendly URL links. I set off to CS-Cart‘s documentation and came up short. I found bits of information here and there, but nothing was really too useful on this subject. I thought I would spend a few extra minutes writing up this tutorial to save you a little time. If you have any questions please feel free to ask.
- Login into your admin panel.
- Click the “Administration” tab.
- Click the “Addons” link (it’s right underneath the tabs).
- We are now looking for the link: SEO (requires URL manipulation engine – mod_rewrite or isapi_rewrite)
- Change the status to “Active”
- Click “edit”
- Change the “product/page SEF URL format:” to “product_name.html” in the top pull down box.
Requires URL manipulation engine – mod_rewrite or isapi_rewrite?
Now if you are anything like me, you have this feeling that you probable don’t have what is required. I read what was required a few time and it still didn’t make much sense right off the bat. Basically all it is say it to make sure you have mod_rewrite installed on your server. Great, now I bet you are going to ask how to check to see if it’s installed. There are a couple of different ways.
WAMP
If you are using WAMP as your local sever, you are in luck. WAMP has made this a very easy task.
- Go to http://localhost/ and click “phpinfo()” under tools.
- Ctrl + F or search for “mod_rewrite”. If you have it, it should be under “Loaded Modules”.
- If it is there great, it’s enabled. If not, go to the next step.
- Left click on the WAMP icon in your system try.
- Then go to “Apache modules”.
- Then find “rewrite_module”. Make sure it has a check mark next to it, if it does not, click it so it does.
- Now you have “mod_rewrite” enabled!
Hosted Server
If you are hosting your website on an actual server like www.GoDaddy.com , like I do, then follow along.
- Open a text editor and name a new file: phpinfo.php
- Inside this new file place the following code (w/o quotes): “<?php phpinfo(); ?>”
- Upload this file to your base directory on your server.
- Open up your favorite browser and go to your new page: http://yourwebsite.com/phpinfo.php
- Ctrl + F or search for “mod_rewrite”. If you have it great, it’s enabled.
- Note: Most hosting company have “mod_rewrite” installed as a default. In this case you will not be able to find it.
- If you don’t know if your hosting company has it installed by default, either switch over to another hosting company like www.GoDaddy.com
or call yours up and ask “Can you please add mod_rewrite to my Apache configuration?”
You’re done! Maybe?
So now everything should be working. Let’s go to the home page and refresh the page, then click on a link. Does it take you to the page or show you an error? If you went to the correct page congrats, if not, it looks like you are stuck with me for a little bit more.
The last fix.
- Go to your root directory and open the file called: .htaccess
- Open the file in a text editor and find the following: RewriteBase
- Now replace that line of code with the following: RewriteBase /your_cscart_directory
- Put a big smile on your face and leave us a comment.
Extra
I have found these pages from CS-cart and thought you guys might find it useful.
http://docs.cs-cart.com
http://kb2.cs-cart.com
http://kb.cs-cart.com
