1
vote
1answer
34 views

How to change the document roots of multiple parked domain names?

I was able to change the document root of one of my parked domain name using the method described here: Change the document root of a parked domain? by rutiolma. Although, when I tried adding another ...
0
votes
2answers
472 views

how to redirect from “https://www.example.com” to be “https://example.com”?

I want to know: How to redirect from .. https://www.example.com to be https://example.com via .htaccess or CPanel? As the SSL only installed on the one without "www", and when I visit the ...
0
votes
0answers
387 views

“www” keeps getting added to subdomain.

I created a subdomain on vps through cpanel. When I navigate to the subdomain in safari, "www" is added so the subdomain becomes www.sub.domain.com and the website of course is not loaded. When I use ...
0
votes
1answer
37 views

Rewriting /latest produces server error

So I'm working on a site for a magazine, and I want the URL /latest to rewrite to the file latest.php. I'm working on a cPanel hosting server, so I put a .htaccess in the /public_html directory like ...
2
votes
1answer
921 views

Hide cPanel login page?

I use the url http://example.org/cpanel to log in. This is accessible to anyone which seems like a bad idea as anyone can guess it's there. How can I hide it and make it accessible via .htaccess ...
1
vote
1answer
524 views

Apache htaccess passwd - ignoring correct login

I want to password protect a directory. I'm running Apache 2 with cPanel on Centos. For the sake of this post, the directory is /home/user/my-secret-dir I used cPanel's "Password Protect ...
0
votes
1answer
707 views

Adding a rule to my htaccess subdomain rewrite

I recently had some help from icyrock.com with a htaccess rewrite that sends all subdomain requests to domain.com/apps You can find the thread here and the code is here: RewriteBase / RewriteEngine ...
0
votes
2answers
8k views

Troubleshooting a .htaccess wildcard subdomain rewrite

I have been working on this problem for a 3 solid days and posted on several forums with no leads. Problem: When a user types in SUBDOMAIN.domain.com I want it to stay that way in the URL window. ...
2
votes
1answer
389 views

Host Primary Domain from a subfolder

I am having a problem making a sub directory act as the public_html for my main domain, and getting a solution that works with that domains sub directories too. My hosting allows me to host multiple ...
-1
votes
1answer
212 views

Why doesn't this work? Create a password protected directory in Cpanel

I have created a password protected directory with Cpanel, yet once I have added the required code to .htaccess it won't authorize? Seems to be working yet it won't authorize with the password I ...
1
vote
1answer
930 views

How to hide cPanel directory

I have a server that uses cPanel. There is a built-in feature with cPanel where I can access the login area by going to domain.com/cpanel. I was wondering if there was a way to disable it or hide ...