0
votes
1answer
106 views

Open HTTP Basic auth only on a specific domain/request

Are we, Apache Commandos, able to do this: Open the HTTP Basic Authentication dialog box in a browser only if I request some URL from a specific domain name/server name/host name? For instance: If ...
1
vote
0answers
117 views

.htaccess to pass FULL URL into other PHP link as $_GET

From .htacces file, how to pass/redirect the FULL URL to another URL as GET Variable? Like: http://www.test.com/foo/bar.asp will be redirected to: ...
2
votes
1answer
473 views

.htaccess redirect works for IP, but not for domain name

I have the following .htaccess file: RewriteEngine on RewriteBase / RewriteRule ^(/?)dir/?$ $1dir/subdir [L] RewriteRule ^(/?)subdir2/?$ ...
0
votes
2answers
250 views

Make website available without entering www

I have a website which can be reached through www.example.com. Now I want to make it also accessible under example.com. How can I make this? I have several subdomains e.g. test.example.com, ...
2
votes
1answer
146 views

Restrict audio file access by domain on S3 and/or Apache

We has some proprietary audio files we are streaming via html5. These files sit in an Amazon S3 bucket. The audio files have special high and low pass filters and other scientific alterations and ...
1
vote
1answer
58 views

how to redirect domain name when changing servers

I have this problem. I've transferred bunch of websites to a new server, but some users still get to an old site/server and the reasons are: DNS caching Name servers/A records take time to switch to ...
0
votes
2answers
249 views

How do I configure Apache htaccess to allow access to a file on one domain and not another?

I have a fairly default Apache install on Ubuntu 10.10. There's no virtual hosting and I would rather not add that. All domains that map to that machine are therefore served by the default site and ...
0
votes
1answer
69 views

301 redirects with multiple domains

I'm currently running a website which has a 'multi store' feature, which essentially means that the single site handles multiple domains. In this instance, I have domain-a.com and domain-b.com both ...
0
votes
2answers
1k views

Change the document root of a parked domain?

I have run into a problem which is that my web host doesn't appear offer addon domains. I currently have a domain name pointing to my name servers. I went into cPanel to add an addon domain that ...
0
votes
1answer
286 views

Redirect domain's content to another domain

1) How would I redirect user1.domain.com to display domain.com/user?id=1 content? 2) How would I redirect domain1.com to display sub.domain2.com's content? I have both domains on the same ...
0
votes
3answers
128 views

Allowing users to use their domain name to their profile?

I have a web site / app where each user as a profile i.e.: mydomain.com/user1 mydomain.com/user2 mydomain.com/user3 etc How do I allow it so that a user can use their own domain name to go to their ...
0
votes
2answers
308 views

.HTACCESS Subdomain instead of .CONF Subdomain

I have 3 sample domains and would like to converting this .conf to .htaccess so that I don't have to restart my Apache all the time once I've updated my subdomain settings. NameVirtualHost *:80 ...
1
vote
1answer
930 views

Redirect subdomain to subdomain on new domain

I own 2 domains sio-india.org and sio-india.com What i want to do is redirect all the subdomains from 1st domain to 2nd domain. eg. home.sio-india.org to home.sio-india.com but i dont want to ...
6
votes
3answers
10k views

Creating a cookie-free domain to serve static content

I am trying to create a "example.com" domain to serve static content to my original domain. How would I make the "example.com" domain to so its cookie-free when loading content? I am thinking that ...