Solved

mod_rewrite and addon domain

Posted on 2010-08-20
2
432 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
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.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

751 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