Zen Cart Logo
Forums / All Other Contributions/Addons / Simple SEO URL (OLD version) [support thread]

Simple SEO URL (OLD version) [support thread]

Views: 1,113,830

Results 2,401 to 2,420 of 5,058
20 Feb 2009, 2:05 AM
#2401
ahall13 avatar

ahall13

New Zenner

Join Date:
Nov 2008
Posts:
33
Plugin Contributions:
0

Simple SEO URL (OLD version) [support thread]

actually I had changed it to that last night because I couldn't get into my admin once I turned on ssu. Since i fixed the path for my ssl to not include the username and realized my htaccess only had the ssu stuff. I put it back to how it was before including the ssu stuff, turned on ssu and it works perfect. I guess it was just the ssl causing a huge mess.

I really appreciate your help.

Adam

20 Feb 2009, 9:40 AM
#2402
fergusmacdonald avatar

fergusmacdonald

Zen Follower

Join Date:
Oct 2007
Location:
Edinburgh, Scotland
Posts:
243
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

yellow1912:

one product does not have a single url, it has many url (with different variables inside).If you have 1000 products and around 50 categories you can have maybe 5000 or more urls just for products and categories.

It's recommended to clean up cache folder once in a while, maybe 2-3 months.

OK, thanks for explaining that a little further.

Do you know if it's possible to automate the cache reset, perhaps through a Cron job?

20 Feb 2009, 2:12 PM
#2403
peteboy avatar

peteboy

New Zenner

Join Date:
Feb 2009
Posts:
27
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

Are there any know issues with stock Centos 5, apache 2.2.3 installs
with easypopulate installed?

I am very new to zencart but as far as I can tell everything is setup as per the install guide.

once SSU is installed apache give a page not found error on any rewriten urls.

I imagine the problem is with the .htaccess file?

20 Feb 2009, 2:37 PM
#2404
peteboy avatar

peteboy

New Zenner

Join Date:
Feb 2009
Posts:
27
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

peteboy:

are there any know issues with stock centos 5, apache 2.2.3 installs
with easypopulate installed?

I am very new to zencart but as far as i can tell everything is setup as per the install guide.

Once ssu is installed apache give a page not found error on any rewriten urls.

I imagine the problem is with the .htaccess file?

are there any dev docs?

20 Feb 2009, 3:07 PM
#2405
peteboy avatar

peteboy

New Zenner

Join Date:
Feb 2009
Posts:
27
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

peteboy:

are there any dev docs?

I have the most recent versions of all zencart modules(unless something new has been released in last 24 hours)

i know nothing about php or apache, but I assume the lines:

RewriteCond %{SCRIPT_FILENAME} -f [OR]
RewriteCond %{SCRIPT_FILENAME} -d
RewriteRule .* - [L]

RewriteRule ^(.+) index.php/$1 [E=VAR1:$1,QSA,L]

do something to the url to change it, how does the regexp work?

what is the SCRIPT_FILENAME variable?

does the [E=VAR1:$1,QSA,L] dodify the GET query to the http server, if so how?

I wonder if there is a problem with redirect??

Does the rewrite redirect the browser to the new url????

Basically my system works as normal till the standard SSU .htaccess file is enabled, then it all goes wrong.

probably my server config but may be the .htaccess config?

what modules MUST apache have to allow SSU to work?

Any clues would be gratefully recieved, please tell me I'm not making a stupid newbie mistake.

20 Feb 2009, 3:13 PM
#2406
mydanilo avatar

mydanilo

Totally Zenned

Join Date:
Dec 2004
Posts:
1,024
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

peteboy:

Is your zen cart in the root directory?
Did you set the:

RewriteBase /

20 Feb 2009, 5:21 PM
#2407
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

fergusmacdonald:

OK, thanks for explaining that a little further.

Do you know if it's possible to automate the cache reset, perhaps through a Cron job?
Yes, absolutely. I will include a cron in the next release.

20 Feb 2009, 6:00 PM
#2408
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

3.6.3 is available download.

  1. Cron added in cron/ssu.php (you can change the folder name as you wish)

Also, you can specify which cache folder to clean up, by default it will clean up everything. If you dont want it to do so, if you want to clean up only aliases for example:
cron/ssu.php?folder=aliases

I will assume that you have to google for cron usage if you dont know it yet.

  1. The unique key pair in table links aliases is changed, this allows SSU to update the new aliases correctly when it needs to.

  2. There was a bug that prevents you to set the permanent_link status, this is now fixed.

20 Feb 2009, 6:26 PM
#2409
peteboy avatar

peteboy

New Zenner

Join Date:
Feb 2009
Posts:
27
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

mydanilo:

peteboy:

Is your zen cart in the root directory?
Did you set the:

RewriteBase /

No I did not set my rewrite base as I assumed it was correct.

I have my zencart setup in a subdir so the the url is

http://myipaddress.net/zencart/

The default SSU .htaccess has the RewriteBase set as /zencart/ so I left it as is.

I hope its not a case of SSU only working if the zencart is setup as the root of the url??

I will try setting up a virtual domain to test.

20 Feb 2009, 6:27 PM
#2410
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

peteboy:

No I did not set my rewrite base as I assumed it was correct.

I have my zencart setup in a subdir so the the url is

http://myipaddress.net/zencart/

The default SSU .htaccess has the RewriteBase set as /zencart/ so I left it as is.

I hope its not a case of SSU only working if the zencart is setup as the root of the url??

I will try setting up a virtual domain to test.
No that is not the case.

20 Feb 2009, 7:40 PM
#2411
peteboy avatar

peteboy

New Zenner

Join Date:
Feb 2009
Posts:
27
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

yellow1912:

No that is not the case.

Sorry, not sure if you mean:

  1. its not the case that zencart must be in root dir of url,
    or
    2)not the case that the default RewriteBase is correct??

I am fairly sure there is a problem with the .htaccess file as I did a test with very simple rule in .htaccess to redir * to ssu_check.php and then everything typed in url goes to ssu_check.php

So the way I see it as a total newbie, is that the default SSU .htaccess rules are incorrect (I know nothing about apache so could easily be wrong).

When ssu is enabled all the links on the main page are rewritten but mod_rewrite cannot find them as the rewrite rules don't say how to change the urls to the correct zencart "html GET" format?????

Has anyone got a working .htaccess file they can post, or point me to a quick reference on writing mod_rewrite scripts????

Also may there be problems due to the name and ID delimiters used???

I have not been able to find answers from searching the forums.

Sorry to ask all these (possibly stupid) questions, as I say I'm a newbie, I hope when I have the answers my questions will be able to help others.

Regards to all.

20 Feb 2009, 7:43 PM
#2412
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Simple SEO URL (OLD version) [support thread]

He meant
2)not the case that the default RewriteBase is correct??
You need to fix that.
Maybe this will help you. If your zen cart is not in your root, then you need to change the
RewriteBase/my_folder

BOF SSU

Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteCond %{HTTP_HOST} ^thegoodshepherdstore.com$ [NC]
RewriteRule ^(.*)$ http://www.thegoodshepherdstore.com/$1 [R=301,L]

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

20 Feb 2009, 8:19 PM
#2413
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

peteboy:

No I did not set my rewrite base as I assumed it was correct.

I have my zencart setup in a subdir so the the url is

http://myipaddress.net/zencart/

The default SSU .htaccess has the RewriteBase set as /zencart/ so I left it as is.

I hope its not a case of SSU only working if the zencart is setup as the root of the url??

I will try setting up a virtual domain to test.
Your server is also not online at this time, it's hard to tell the exact cause of the issue.

20 Feb 2009, 8:45 PM
#2414
peteboy avatar

peteboy

New Zenner

Join Date:
Feb 2009
Posts:
27
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

countrycharm:

He meant
2)not the case that the default RewriteBase is correct??
You need to fix that.
Maybe this will help you. If your zen cart is not in your root, then you need to change the
RewriteBase/my_folder

##############################################################
########################################################
################################################################

THE IMPORTANT POINT AS FAR AS I CAN SEE IS TO COMMENT OUT THE OPTIONS LINE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

##########################################################
#############################################################
###########################################################

It now seems to work.

But i seem to notice a slight preformance hit, has anyone done any benchmarks?.

Probably the wrong place to post this as I am not a zen dev and know nothing about php, but from a brief look at some of the code it seems to suck, though I am biased to C as that is what I know about.

That said I am grateful to the all the devs, as you may have saved me having to write a whole system myself.

It is probably still better extending a system I have no experience with than working from scratch,
I am considering writing a barcode module, anyone interested?
or have any pointers on where to start?

20 Feb 2009, 8:46 PM
#2415
craft_magick avatar

craft_magick

Zen Follower

Join Date:
Nov 2007
Posts:
166
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

yellow1912:

Clear cache in admin, see if that solves the problem

How do I 'clear cache in admin' or 'clear cache' in general for that matter?

I'm getting a redirect loop on login and from what i've read in this forum clearing the cache may help.

20 Feb 2009, 9:32 PM
#2416
peteboy avatar

peteboy

New Zenner

Join Date:
Feb 2009
Posts:
27
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

Craft Magick:

How do I 'clear cache in admin' or 'clear cache' in general for that matter?

I'm getting a redirect loop on login and from what i've read in this forum clearing the cache may help.

I'm no expert but i think you click the admin -> extras -> manage SSU menu.

Then the page loads and there is an option to flush cache??

if that don't work try erasing the cache/ssu directory

I only been trying to use this mod for the last couple of days so don't rely on my advice.

20 Feb 2009, 9:40 PM
#2417
craft_magick avatar

craft_magick

Zen Follower

Join Date:
Nov 2007
Posts:
166
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

peteboy:

I'm no expert but i think you click the admin -> extras -> manage SSU menu.

Then the page loads and there is an option to flush cache??

if that don't work try erasing the cache/ssu directory

I only been trying to use this mod for the last couple of days so don't rely on my advice.

aaahhh... EXTRAS... thank you, that was the one I didn't check. Will go clear the cache and now and post back if that fixed the redirect loop error on login.

thank you

20 Feb 2009, 9:46 PM
#2418
craft_magick avatar

craft_magick

Zen Follower

Join Date:
Nov 2007
Posts:
166
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

Craft Magick:

aaahhh... EXTRAS... thank you, that was the one I didn't check. Will go clear the cache and now and post back if that fixed the redirect loop error on login.

thank you

cleared cache and still getting redirect loop on login

went ahead and just put up a warning message on my website for now because i don't know what else to do and i just started a new marketing campaign yesterday :frusty:

if anyone has any suggestions it would be apprecaited

20 Feb 2009, 9:51 PM
#2419
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

Craft Magick:

cleared cache and still getting redirect loop on login

went ahead and just put up a warning message on my website for now because i don't know what else to do and i just started a new marketing campaign yesterday :frusty:

if anyone has any suggestions it would be apprecaited
If you get redirection in admin, try this:
http://wiki.rubikintegration.com/zencart/modules/ssu/troubleshootings/admin_redirection_loop

Again, the wiki has tons of useful info, it takes tons of time to build up those pages as well, so please check the wiki first when you run into a problem. Usually the solution is there.

20 Feb 2009, 9:54 PM
#2420
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

peteboy:

##############################################################
########################################################
################################################################

THE IMPORTANT POINT AS FAR AS I CAN SEE IS TO COMMENT OUT THE OPTIONS LINE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

##########################################################
#############################################################
###########################################################

It now seems to work.

But i seem to notice a slight preformance hit, has anyone done any benchmarks?.

Probably the wrong place to post this as I am not a zen dev and know nothing about php, but from a brief look at some of the code it seems to suck, though I am biased to C as that is what I know about.

That said I am grateful to the all the devs, as you may have saved me having to write a whole system myself.

It is probably still better extending a system I have no experience with than working from scratch,
I am considering writing a barcode module, anyone interested?
or have any pointers on where to start?
If you can provide us a link, I can check the site.
I came from a C background as well, but again imagine you have to code a website with C, I dont think it's fun :). Surely php is slower than C, but we are not doing any heavy computing here, the difference is not noticeable.

Zencart, I believe, does have bar-code module working as well.