Scott Walker
asked on
htaccess conflict
Hello, Experts! We are bringing a site from another web developer into our GoDaddy hosting account - it was a beta site, running successfully on their server, but for some reason isn't working on ours. Here's the .htaccess file given to us by their team (with some modifications for anonymity)...
+++++++++++++++++++++++++
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /somedirectory/anotherdire ctory/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /somedirectory/anotherdire ctory/inde x.php [L]
</IfModule>
+++++++++++++++++++++++++
It seems that something in the file is "breaking" the site - when we use the "default" WordPress file...
+++++++++++++++++++++++++
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
+++++++++++++++++++++++++
... most of the site works fine. But when we try to go to certain pages in the WooCommerce shopping cart, we get a "page not found" error. So I'm assuming that there's something about the directories they've put into the "rewritebase" that are necessary for cart functioning, but I can't figure out how to get them to work on my GoDaddy server. Any ideas? Thanks so much!!
+++++++++++++++++++++++++
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /somedirectory/anotherdire
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /somedirectory/anotherdire
</IfModule>
+++++++++++++++++++++++++
It seems that something in the file is "breaking" the site - when we use the "default" WordPress file...
+++++++++++++++++++++++++
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
+++++++++++++++++++++++++
... most of the site works fine. But when we try to go to certain pages in the WooCommerce shopping cart, we get a "page not found" error. So I'm assuming that there's something about the directories they've put into the "rewritebase" that are necessary for cart functioning, but I can't figure out how to get them to work on my GoDaddy server. Any ideas? Thanks so much!!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.