Zencart CMS doesn't work as a sub domain because of Rewrite in httpd.conf

nmb

Verified User
Joined
Sep 13, 2008
Messages
223
I have a subdomain website that is working using Zencart CMS without any problem before switched to CB2.0. After switch to CB 2.0, I can no longer access my website on the sub-domain. Let's say it's www1.xxxx.com. I can still access www.xxxx.com without any problem though.

When I check httpd.conf file, I found the code below :

Code:
              <IfModule mod_rewrite.c>
                        RewriteEngine on
                        RewriteOptions InheritBefore
                        RewriteBase /   
                        RewriteCond %{REQUEST_URI} ^/php55-fcgi(.*)
                        RewriteRule . - [L]
              </IfModule>

Comment out above lines and restart apache, my www1.xxxx.com is back to work as it should.
 
Solved

Hi ,
I made some changes and found a way to solve the problem .

The problem is when you have installed Drupal, ZenCart or every CMS which has rewrite rules in the /home/user/public_html , if you have any thing in subdomains apache returns Error 500.

I did these steps:

1) untar attached file in /usr/local/directadmin/data/templates/custom
Code:
tar -zxf custom.tar.gz
2)
Code:
 cd /usr/local/directadmin/custombuild
3)
Code:
./build rewrite_confs

sorry for bad english
 

Attachments

  • custom.tar.gz
    1.9 KB · Views: 38
Back
Top