YES you'll have to use a .htaccess file, no matter what your Zen Cart version is. Why that ? Because even though the user sees pretty URLs, generated by SSU, when the request is made to the server, it has to be redirected to index.php, which behaves like a kind of 'hub' in Zen Cart.
It shouldn't be too difficult to create a .htaccess file, but true, its syntax can be awful when it comes to specify URL rewriting rules. Here are some explanations about how it works:
Code:
1 #### BOF SSU
2 Options +FollowSymLinks -MultiViews
3 RewriteEngine On
4 # Make sure to change "test_site" to the subfolder you install ZC. If you use root folder, change to: RewriteBase /
5 RewriteBase /zencart/
6
7 # Deny access from .htaccess
8 RewriteRule ^\.htaccess$ - [F]
9
10 RewriteCond %{SCRIPT_FILENAME} -f [OR]
11 RewriteCond %{SCRIPT_FILENAME} -d
12 RewriteRule .* - [L]
13
14 RewriteRule ^(.*) index.php?/$1 [E=VAR1:$1,QSA,L]
15 #### EOF SSUbijouxlu@ssh1:~/mods/Simple_SEO_URL$
Lines beginning by '#' signs are comments, you can ignore them. Don't modify lines 2 and 3 (they specify some Apache options and switch the rewriting engine on). On line 4 you have to specify you base URL; if the address is a domain name, just leave:
otherwise if the address is something like that:
http://mydomainname.tld/shop, then the this line becomes:
Line 8 just prevents the user from viewing your .htaccess file (don't know if it's really useful). Lines 10 to 12 state that if the URL points to an existing file or directory, then the URL must not be rewritten.
Finally, Line 14 tells Apache to send all the parameters to index.php.
As you can see, you should have to change only one line. However, if you have an 'exotic' https address (like
https://generic_https_host/~login/... if you use a shared certificate), tell me and I'll show you the trick.
Bookmarks