Solved

mod_rewrite and addon domain

Posted on 2010-08-20
2
427 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
ID: 33488518
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
ID: 33514584
Thanks
0

Featured Post

New My Cloud Pro Series - organize everything!

With space to keep virtually everything, the My Cloud Pro Series offers your team the network storage to edit, save and share production files from anywhere with an internet connection. Compatible with both Mac and PC, you're able to protect your content regardless of OS.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let’s list some of the technologies that enable smooth teleworking. 
I had an issue with InstallShield not being able to use Computer Browser service on Windows Server 2012. Here is the solution I found.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
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.

867 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

26 Experts available now in Live!

Get 1:1 Help Now