Page 1 of 1

[Zen Cart] .htaccess re-generation

Posted: Sat Aug 08, 2009 2:16 pm
by username1
Hi Jiri

I need to auto generate the .htaccess file as I have mod rewrite installed now instead of isapi and have set the category levels to 5.

When I had the trouble initally you said to make sure that the file is writable by php scripts. Did you just mean chmod the value to 777? As the script still doesnt seem to generate when the .htaccess file permissions are changed to 666 or 777.

I dont want to just have to get you to ftp to the account everytime. Please tell me how I can do it myself.

Re: [Zen Cart] .htaccess re-generation

Posted: Sat Aug 08, 2009 5:29 pm
by inveo
  1. Change the permissions on www/.htaccess to be writeable by all (666 or -rw-rw-rw- within your FTP Client) and delete readonly-htaccess file if exists on your FTP.
  2. Using your web browser visit the location you placed your internet shopping cart, e.g. http://www.mydomain.com/store/, http://www.mydomain.com/catalog/ etc. (by doing so the content of www/.htaccess file will be re-generated).
  3. Change the permissions on www/.htaccess to be writeable only by yourself (644 or -rw-r--r-- within your FTP Client) and/or create new blank file with readonly-htaccess name in same directory (this will prevent www/.htaccess file from being overwritten by Inveo Magic SEO URLs).
  4. The re-generation of .htaccess file content is finished.

Re: [Zen Cart] .htaccess re-generation

Posted: Sun Aug 09, 2009 11:34 am
by username1
1. Change the permissions on www/.htaccess to be writeable by all (666 or -rw-rw-rw- within your FTP Client) and delete readonly-htaccess file if exists on your FTP.


I chmod .htaccess to 666, and can confirm that there is no readonly-htaccess on the server

2. Using your web browser visit the location you placed your internet shopping cart, e.g. http://www.mydomain.com/store/, http://www.mydomain.com/catalog/ etc. (by doing so the content of www/.htaccess file will be re-generated).


I visit a few of the catalog pages, and I get a 404 error as the rewrites are not generated in the .htaccess file but obviously the magic_seo.php is trying to use the rewritten URLs. Is there something I should be aware of with windows? What am I missing? I feel gutted as this should be so simple :(

Re: [Zen Cart] .htaccess re-generation

Posted: Sun Aug 09, 2009 12:01 pm
by inveo
username1 wrote:I chmod .htaccess to 666, and can confirm that there is no readonly-htaccess on the server


chmod? If I remember correctly you are running MSU over IIS...

Re: [Zen Cart] .htaccess re-generation

Posted: Mon Aug 10, 2009 12:52 am
by username1
Hi, I use Ipswitch WSFTP, it allows you to change the file permissions or do you suggest another way?

Re: [Zen Cart] .htaccess re-generation

Posted: Mon Aug 10, 2009 4:30 am
by inveo
Is it shared or dedicated host? Can PHP scripts to write to files with such permissions?

Re: [Zen Cart] .htaccess re-generation

Posted: Mon Aug 10, 2009 4:56 am
by username1
Hi, to answer your questions
Is it shared or dedicated host?

It is dedicated I have full control

Can PHP scripts to write to files with such permissions?

I would assume not, but how can I tell and rectify any potential problem?

Re: [Zen Cart] .htaccess re-generation

Posted: Mon Aug 10, 2009 7:06 am
by username1
I managed to sort it finally on my own. In case anybody else ever has the same issue here is how to change the file permission on Windows 2003 with IIS

1. Navigate to the file or folder that needs its permissions changed.
2. Right-click on the file or folder and click on Properties.
3. Select the Security tab.
4. Click on the Internet Guest Account and make sure that the Allow checkbox is set for Write permissions.
5. If you are changing these permissions for the Drupal install process, when the installation is complete, for security reasons, you should revoke write permissions on the files or folders that Drupal no longer needs to write to.
6. To revoke write permissions, just uncheck it.

Cart  
(empty)

Cart Check out  »

Prices are tax inclusive.

The VAT rate for your country (US) * is 0,0 % because it is not a member of the European Union (EU).

* Please create an account if your country does not match.

Community feed
  • [Zen Cart] Can't execute Magic SEO URLs sitemaps
    I installed Magic SEO URLs Sitemaps Add-On for ZenCart MSU4.x/MSU5.x 2.0 on my server, when I try to generate sitemaps using: https://www.pechesudv155.owally.com/sitemaps.php I received :...
    by peter@pechesud.com
  • [phpBB3] Sharing users between phpBB / PrestaShop
    Hi i have 2 question 1- prestashop module support phpBB 3.3 ? 2- why we can not login in prestashop and phpbb with same user?
    by zohall
  • [phpBB3] AJAX Userinfo Extension
    Hi! I'm having trouble with this extension: https://www.phpbb.com/customise/db/exte ... _userinfo/ I tried asking support from the author but for no avail, since now. My request for support...
    by Lord Phobos
  • [phpBB3] Upgrade to phpBB 3.2.3
    Hello.. after Upgrade to phpBB 3.2.3 I am getting this message.. How can I solve this issue..? Thank you
    by ingbrzy
  • [phpBB3] URL path changed
    Hello.. I have changed my site path after moving to new hosting and now can not activate SEO module.. new path http://www.miuios.cz/domains/miuios.cz/ could you help me? thank you
    by ingbrzy2
Join our support forum » Pre-Sales Questions »
Featured Testimonials

Magic SEO URLs for ZenCart were an excellent investment for our medium-sized business, and the support team revised the software to get our non-standard Zen Cart working. It does everything we need it to, and overall I have been thrilled with Magic SEO URLs. I mean every word of that. Thanks again.

Dimitri, the owner of Headphones - Headsonic Australia

I normally don't give product testimonials, but your product works so well that I just can't keep quiet about it. I am a web designer and SEO, over the years I've worked with my different shopping carts and one of their biggest weaknesses is bad SEO of the cart link structure, in particular duplicate content issues through out most carts....

Kinnaert, the owner of Arnolds Office Furniture

More Testimonials »