Re: Simple SEO URL [support thread]
This is all you have? (nothing else in this htaccess file?)
BTW, I thought I should explain the 3 most important lines there:
RewriteCond %{SCRIPT_FILENAME} !-f
--> if the url does not point to a real file
RewriteCond %{SCRIPT_FILENAME} !-d
--> if the url does not point to a real folder
RewriteRule ^(.*) index.php?/$1 [E=VAR1:$1,QSA]
--> then do the rewrite
If you comment out the 2 lines above, it means even if yourste.com/something.html or yoursite.com/abc points to real file/folder, you will still be redirected. So keep that in mind.
I would recommend you contact your host with the error details you got to see why the 2 lines above dont work as they should
Quote:
Originally Posted by
autoace
As suggested by you, please have a look:
#### BOF SSU
Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /
# Deny access from .htaccess
RewriteRule ^\.htaccess$ - [F]
#RewriteCond %{SCRIPT_FILENAME} !-f
#RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*) index.php?/$1 [E=VAR1:$1,QSA]
#### EOF SSU
Re: Simple SEO URL [support thread]
something very important: it also means visitors visit the old urls may not be redirected correctly to new ones, they may see all not found pages
Re: Simple SEO URL [support thread]
This is what happens when I work late at night LOL... I actually had 2 copies of the ssu code in the htacces file and that is what was causing the issues.
I now uncommented those 2 lines with a cleaned up htaccess file and the admin and front end both work!
No, that was not the whole file, I just thought you meant to show you the ssu part. Anyway all is well again!
BTW, thank you for the heads up, I probably would not have double checked if you had not said anything!
Re: Simple SEO URL [support thread]
Hi,
I was following the suggestions you gave to autoace with .htaccess file hoping that it may fix my 500 too. So now i do not get 500 on all the links, but i get 404 on every single one of them. Do you have any suggestions?
My .htaccess lookls like this now:
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
#### BOF SSU
Options +FollowSymLinks -MultiViews
RewriteEngine On
# Change "/zencart/ to the correct setting
# if your site is located at root folder, then you should have RewriteBase /
# Go to your include/configure.php, this value should be the same with the value of DIR_WS_CATALOG
RewriteBase /www.diapercakesgifts.com/
# Deny access from .htaccess
RewriteRule ^\.htaccess$ - [F]
RewriteCond %{SCRIPT_FILENAME} !-f [OR]
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule .* - [L]
RewriteRule ^(.+) index.php/$1 [E=VAR1:$1,QSA,L,PT]
#### EOF SSU
Your help would be greatly appreciated!
Re: Simple SEO URL [support thread]
I dont think this is correct
RewriteBase /www.diapercakesgifts.com/
If your store is located at
www.diapercakesgifts.com/store for example then you need
RewriteBase /store/
of your store is located at
www.diapercakesgifts.com
then you need to use
RewriteBase /
Re: Simple SEO URL [support thread]
Thank you for your help! :D It works now! :clap:
If anyone has the same problem with 500 error this is the way my .htaccess looks now:
#### BOF SSU
Options +FollowSymLinks -MultiViews
RewriteEngine On
# Make sure to change "test_site" to the subfolder you install ZC. If you use root folder, change to: RewriteBase /
RewriteBase /
# Deny access from .htaccess
RewriteRule ^.htaccess$ - [F]
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*) index.php?/$1 [E=VAR1:$1,QSA,L]
#### EOF SSU
Re: Simple SEO URL [support thread]
I have SSU 3.84 working on ZenCart 1.39f (I recently upgraded from ZenCart 1.39d)
An example if one of my sites URL's is:
.nintendoparts.com.au/screens-c-2_5/ds-lite-bottom-lcd-screen-p-2
But I would like them to look like:
.nintendoparts.com.au/ds-lite-bottom-lcd-screen-p-2.html
I have changed the setting in config>Simple SEO URL to
ID delimiter -
Name delimiter -
File extension html
Set max category level 0
Exclude list advanced_search_result,redirect,popup_image_additional,download,wordpress
Set Link Alias Status false
Set minimum word length 0
Set maximum name length 0
Set SSU Status true
Set SSU Multi Language Status false
Set Query Key's Exclude List zenid,gclid,number_of_uploads,number_of_downloads,action,sort,page,disp_order,fi lter_id,alpha_filter_id,currency
Set Auto Alias Status false
Set Category Separator /
Hide default language identifier true
Cache reset time 1285300633
The settings in bold I though would give me the result I'm after, but changing these setting seems to have absolutely no effect. Does anyone have any suggestions as to I how I could get the .html at the end of my URL's and have no categories or subcategories within the URL?
Re: Simple SEO URL [support thread]
Hi,
I'm using zc 1.3.9f running on a hosted shared server.
PHP version is 5.2.13.
I just installed Simple SEO v3.8.5 and I got error 404.
I checked with my hoster and they mentioned that mod_rewrite is enabled but option +FollowSymLinks is not allowed in shared server environment due to security restrictions. They suggested to use other rewrite rules.
I tried removing the particular line that contain option +FollowSymLinks and I'm able to get access to my shop again. So my question is, is it OK to just remove that line? or is there any other way to get around this? any help would be much appreciated.
Here is the content of my htaccess now.
#### BOF SSU
RewriteEngine On
RewriteBase /
# Deny access from .htaccess
RewriteRule ^\.htaccess$ - [F]
# Existing files shouldn't get rewritten
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
# The rest can go to ZC
#RewriteRule ^(.+) index.php/$1 [E=VAR1:$1,QSA,L]
RewriteRule ^(.+) index.php/$1 [E=VAR1:$1,QSA,L,PT]
#### EOF SSU
TIA,
boylibre
Re: Simple SEO URL [support thread]
Quote:
Originally Posted by
Nintendoparts
I have SSU 3.84 working on ZenCart 1.39f (I recently upgraded from ZenCart 1.39d)
An example if one of my sites URL's is:
.nintendoparts.com.au/screens-c-2_5/ds-lite-bottom-lcd-screen-p-2
But I would like them to look like:
.nintendoparts.com.au/ds-lite-bottom-lcd-screen-p-2.html
I have changed the setting in config>Simple SEO URL to
ID delimiter -
Name delimiter -
File extension html
Set max category level 0
Exclude list advanced_search_result,redirect,popup_image_additional,download,wordpress
Set Link Alias Status false
Set minimum word length 0
Set maximum name length 0
Set SSU Status true
Set SSU Multi Language Status false
Set Query Key's Exclude List zenid,gclid,number_of_uploads,number_of_downloads,action,sort,page,disp_order,fi lter_id,alpha_filter_id,currency
Set Auto Alias Status false
Set Category Separator /
Hide default language identifier true
Cache reset time 1285300633
The settings in bold I though would give me the result I'm after, but changing these setting seems to have absolutely no effect. Does anyone have any suggestions as to I how I could get the .html at the end of my URL's and have no categories or subcategories within the URL?
I have had similar problems with SSU not showing urls how I wanted. In my case SSU kept showing the ID's. The only way I found to correct it was to actually delete all the folders inside the SSU cache then go to Extras->SSU Manager and Reset All Cache.
Re: Simple SEO URL [support thread]
Hi All,
I am using this mod. But as my site is growing bigger and bigger and the number of categories are increasing it is becoming very difficult to reset the cache. It takes a long long time to reset the cache. Please help What should i do?