Fascinating problem with .htaccess and addon domain
Recently I got website project from my client and he was interested to do install the site on addon domain. I installed the site successfully but were not to able to update the website content from admin panel. There was an issue of restriction and/or permission in the root domain’s .htaccess. So I thought I can solve this issue by using overriding the .htaccess file using this code
AllowOverride None
But this was not working for me. Again I thought what will be the issue why this is not working. I finally got the solution for this issue.
Our root .htaccess file were using rewrite rules.
Here’s what worked:
#enable rewrite engine
RewriteEngine on
.htaccess file in addon path (/public_html/cragsem.com/addon.com/) looks like this:
RewriteEngine off
Hope this post will help for others..
Leave a Reply
Want to join the discussion?Feel free to contribute!