Solved

mod_rewrite and addon domain

Posted on 2010-08-20
2
425 Views
Last Modified: 2013-11-30
I'm using a cpanel web hosting, I recently add an addon domain. There is a javascript file when I visit its link from old domain it works. But the with the addon domain it throws an error 406. main and addon domain is pointed to the same directory and same ftp username.

Hosting company checked for days and said that mod_security should disabled. What do you think?
0
Comment
Question by:sahanz
2 Comments
 
LVL 9

Accepted Solution

by:
MBobrek earned 500 total points
Comment Utility
You could certainly disable mod_security.  However, I often use that as a last resort.  I guess MY question to you would be How important is it to mask that addon domain?  Could your needs allow you to take a simple approach and use DNS settings with the registrar to simply auto-forward the "add-on domain" to the existing domain?  This could be  simple solution provided there is no NEED to have scripts run under both domains and just have one auto-forward.

Example:  You want both dog.com and dogs.com.  Dog.com is an add-on.  It's there to capture the "typo" visitors.  But business is done under dogs.com.  DNS forwarding would simply redirect dog.com to dogs.com where all scripting is performed.  
0
 
LVL 1

Author Closing Comment

by:sahanz
Comment Utility
Thanks
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
Let’s list some of the technologies that enable smooth teleworking. 
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now