Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

mod_rewrite and addon domain

Posted on 2010-08-20
2
Medium Priority
?
437 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 2000 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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
This month, Experts Exchange’s free Course of the Month is focused on CompTIA IT Fundamentals.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

660 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