-5
votes
1answer
36 views

Configure subdomain godaddy and use an existing CERT [closed]

I just created a subdomain ony my domain named: profile.cv.hsoto.me However, when I try to access it, I get a warning: I'm not sure how to fix this. My .htaccess file is as follows: # BEGIN ...
0
votes
1answer
38 views

htaccess parameter to subdomain

I would like to redirect this http://www.domain.com/test.php?sub=subdomain&type=cars redirects to http://subdomain.domain.com/cars I already have mod_rewrite rules to do the opposite: ...
1
vote
0answers
105 views

RewriteCond if folder with parametername exists

I want to make a subdomain-redirect if a folder with the same name as the typed subdomain exists. e.g. I have some folder-structure like www.mysite.de/mainpage/hui.php and want to be able to access it ...
1
vote
1answer
84 views

How to force a subdomain as a default domain but keep other subdomains working?

I have a WordPress site installed at http://www.example.com and another testing WordPress site at http://test.example.com. I've successfully made http://www.example.com redirect to ...
1
vote
0answers
131 views

mod_rewrite after a cname

I have the domain foo.bar.example.com. foo is one of many sub-subdomains under bar.example.com. I need to capture and redirect all links at foo.bar.example.com that begin with "/special/". ...
0
votes
1answer
291 views

htaccess subdomain Redirect issue

I am trying to build a wordpress site with mobile. I have set the sub-domain in httpd.conf and htaccess. now i add some custom search in a e:\wp\custom\ folder, another mobile custom search in ...
1
vote
2answers
2k views

Change port and host using .htaccess

I am trying to use mod_rewrite to basically port forward a port on a subdomain to another port on another IP. Like this: sub.website.com:2000 --> 123.45.67.891:3000 How could this be ...
0
votes
1answer
50 views

Htaccess file redirect to certain web page according to requested domain

I will put it as simple as I can. I really need your help, so one of the domains let's say example1.com is set to point to real_domain.com, basically what happens is when you type into your browser ...
0
votes
1answer
121 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
1answer
745 views

Rewrite subfolder to subdomain with Apache htaccess

Here's the situation: I recently re-structured my website at www.pixelscrapper.com. I still have the old legacy website at legacy.pixelscrapper.com (hosted on the same server). Is it possible to use ...
1
vote
1answer
37 views

Reversing a mod_rewrite rule

I want to redirect accesses from http://www.domain.com/test.php?sub=subdomain&type=cars to http://subdomain.domain.com/cars I already have mod_rewrite rules to do the opposite: ...
1
vote
2answers
757 views

Apache is giving a 500 Internal server error on a sub domain created for my domain

I have created a subdomain by name http://admin.stenzsolutions.com and just to test the sub domain, i have hosted the same content as the main domain http://www.stenzsolutions.com Now i have ...
2
votes
1answer
988 views

How can we achive a 403 Permissions Denied for a subdomain?

We have a multisite installed in the root directory (multisite.com) and also a wordpress single installation on a subdomain (help.multisite.com) In the root .htaccess we placed: #START Security: ...
0
votes
0answers
462 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 ...
1
vote
2answers
161 views

Routing subdomains with querystrings

RewriteEngine on Options -Indexes DirectoryIndex index.php RewriteBase / RewriteRule ^user/([a-zA-Z]+)/([a-zA-Z]+)(/)?$ index.php?controller=main&function=$1&arguments=$2 [NC,L] I can go ...
2
votes
1answer
1k views

.htaccess - redirect non www to www and retain subdomains from redirecting

So, on my main domain 'domain.com' I created several subdomains from cPanel, like 'sub1.domain.com' and 'sub2.domain.com'. Their real location on server is in 'domain.com/sub1' and 'domain.com/sub2'. ...
0
votes
1answer
368 views

How Do I Set Up a Subdomain with a Separate Webhost and Domain Registrar?

I have looked at all sorts of solutions online and come up with nothing. I cannot ask the webhost for help because it's not my hosting account; I am setting it up for a client. My client has a ...
2
votes
1answer
667 views

Proxy all requests for subdomain to an ip via htaccess/apache

Let's say I have the following subdomain with its own document root etc: monad2.mysite.com I want that all requests are proxied to an IP (for instance 193.159.3.129) but they must pass through the ...
0
votes
1answer
143 views

DNS: browser shows primary website when other site is visited using any subdomain, ie 'www'

issue: misoncifgured dns? symptom: when i visit http://www.borisnikolaev.com/index.php?option=com_content&view=article&id=51&Itemid=53, it shows what should be on ...
0
votes
2answers
441 views

htaccess rewrite for language subdomains

I need to point subdomains like es.domain.com to /public/www/index.php The problem is my host does NOT provide me to set a path, I can only set up the subdomains for "local use", which creates the ...
0
votes
1answer
53 views

Need help regarding htaccess stuff

I have my site at www.example.com and have several sub-domains city wise. Suppose i have subdomain with name say "subdomain.example.com" then i want to redirect the subdomain homepage to directory in ...
1
vote
1answer
214 views

Pointing Sub domain of one website to sub folder of another website

I have a domain example.com pointing to Linux AWS. I also have demo.example.com which i need to point to /htdocs/c5 of example2.com on Windows Server running XAMPP. My Findings Used A record of ...
0
votes
1answer
292 views

How to set a subdomain as the default domain?

I have a domain (lets call it bar.com) and I want the default hostname to be foo.bar.com. So, bar.com would be redirected to foo.bar.com and foo.bar.com would correspond to the main httpdocs folder (I ...
8
votes
1answer
185 views

Create VHost & Forward subdomain to it

Gurus of So I have a simple .htaccess file where I only redirect non www to www for my webapp. Now what I want to do is Create a new vhost like http://subdomain.mydomain.tld Create a redirect for ...
1
vote
2answers
1k views

create subdomains using .htaccess in Plesk

I am trying to map several subdomains to directories in my ROOT using .htaccess (is 'map' the right word for it?) The server uses Plesk, which is something Im not particulary familiar with (cPanel ...
1
vote
1answer
281 views

Redirecting subdomain from http to external https but avoiding redirect alert

I am using a hosted wiki service which runs over SSL, I have a CNAME redirect from my subdomain to it but browsers show a message saying it is being redirected. Is there a way I can get around this? ...
0
votes
2answers
639 views

htaccess protection for some subdomain folders only

I have two site hosted as subdomains. One of the site use subdomains as aliases for dynamic images requests. site1.example.com site2.example.com sub1.example.com -> same as site1 sub2.example.com ...
-1
votes
1answer
318 views

Virtual subdomain with mod-rewrite on Apache

I'm trying to rewrite requests to subdomains to a specific file. So when I visit http://test.domain.com it shows the campaign.php RewriteCond %{REQUEST_URI} !^index\.php RewriteCond %{HTTP_HOST} ...
0
votes
1answer
596 views

Mod rewrite all missing images across subdomains

I am setting up a development server so I no longer have to directly edit the files on remote servers and to have SVN for the version management. As some sites are very image heavy (3-30gb) we ...
0
votes
1answer
130 views

Subdomains from folders on Apache

I have a website on localhost, mapped in HOSTS as: 127.0.0.1 www.yorkshiretestingwebsite.com 127.0.0.1 yorkshiretestingwebsite.com However, the folder (C:/www/vhosts/yorkshiretestingwebsite.com) ...
0
votes
1answer
175 views

Block file from accessing using .htaccess for a subdomain

I have a website for e.g. www.domain.com And I have another subdomain for e.g. test.domain.com Both my main and subdomain point to same directory which is public_html. I want to block access to ...
1
vote
4answers
383 views

Adding dynamic subdomains to my webserver?

I'm trying to add a wildcard sub-domain system to my web server, but its still not working, These are the steps I took: I made a new file, vhost.conf, in the directory ...
1
vote
1answer
72 views

turning urls into subdomains?

i have this url http://www.example.com/user.php?user=solomon i want to convert this into http://solomon.example.com how can i do this!! thanks :)) p.s. im using plesk
0
votes
1answer
293 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
1answer
638 views

How to redirect a subdomain with subfolders to a domain using the same subfolders and the subdomain itself as parameter?

So I would likte to redirect this url: http://subdomain.domain.com/subfolder/subsubfolder/ to: http://www.domain.com/subfolder/subsubfolder/?parameter=subdomain And also using other, more, less or ...
4
votes
4answers
2k views

How to set up a DNS to use a catch-all address?

This is not really a programming question, it's more about settings that I can alter visually. I have bought a domain and am wondering how I can get it work in such a way that everything before the ...
0
votes
1answer
104 views

domain, subdomain and file

Now i have domain and subdomain. I want what subdomain show file from domain file. Ex. dom.example.com -> must show file from example.com/subdomain.php How make that with htaccsess thanks
2
votes
1answer
179 views

Redirect subdomain.xyz.com to subdomain.abc.com

Hey all, I'm trying to move to another domain, but have many subdomains under the existing domain. All the subdomains will be the same but just mapped with the new domain. [subdomain].xyz.com => ...
0
votes
2answers
340 views

Need to disable sub-subdomain in vHost or .htaccess

Several of my clients created an "A" record to point a sub domain of their site to my server. E.g., http://subdomain.clientsite.com points to my IP address. This works fine. However, if I manually ...
0
votes
2answers
318 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
1k 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 ...
2
votes
1answer
785 views

mod_rewrite: url rewriting plus subdomain (wildcard) rewrite at the same time

i have two rules in my .htaccess file for url rewriting: for subdomain rewriting: xxx.domain.com is internally redirected to file.php?item=xxx RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC] ...
0
votes
3answers
2k views

301 redirecting second domain to first via htaccess, mod_rewrite whilst preserving subdomains - any tips?

I've been hunting around the tubes today, but given my limited mod_rewrite and regular expression knowledge I'm struggling. What I'm trying to achieve is a rewrite of domain1 (including subdomains) ...
3
votes
1answer
2k views

Subdomain doesn't work without www in front of it

I had a subdomain setup in cpanel before (sub.domain.com to redirect to domain.com/sub/) and suddenly today I noticed that it was rewriting the URL in the browser to www.domain.com/sub/ instead of ...
0
votes
2answers
519 views

How to protect subdomain in Apache while developing?

I need to do some maintenance work to my blog, which is under http://blog.ricardoamaral.net and I'm looking for the best way to protect all outside access, but my own, to that subdomain. So I can work ...
1
vote
3answers
882 views

Redirect Issue With Subfolder To Subdomain On Shared Host

Heres the situation: I have a couple of different web projects running on a single shared host. Project 'A' is accessed through a subdomain (subA.mydomain.com) while project 'B' is the main ...
2
votes
1answer
2k views

Does Apache look at .htaccess files above a VirtualHost's DocumentRoot?

I am trying to setup a subdomain on a server of mine, where blog.domain.com serves the content from domain.com/blog/ Perhaps this is the wrong way of doing this entirely, but I have setup a ...
1
vote
2answers
2k views

How to redirect subdomain to domain with subdomain as parameter

I would like to redirect my wildcard subdomain to my main domain using the subdomain as a GET parameter in the URL using .htaccess Example of what I would like to happen: billy.example.com ...
1
vote
0answers
1k views

Apache .htaccess trick to authenticate only once for all subdomains? [duplicate]

Possible Duplicate: Apache .htaccess trick to authenticate only once for all subdomains? I'm using something like this in .htaccess file to restrict access to the website: AuthUserFile ...
1
vote
3answers
2k views

Apache .htaccess trick to authenticate only once for all subdomains?

I'm using something like this in .htaccess file to restrict access to the website: AuthUserFile /some/directory/.passwd AuthGroupFile /dev/null AuthName EnterPassword AuthType Basic require ...