0
votes
0answers
91 views

Apache rewriting sub domain URL with www prefix

My website is rewriting all subdomain links with www. for example news.example.com works fine, but if I go to news.example.com/wp-admin it will rewrite the URL to www.example.com/wp-admin ...
0
votes
0answers
40 views

nginx rewrite subdomain to other subdomain

I have a atlassian server with the following config: server { listen 443; server_name servicedesk.example.nl; ssl on; ssl_certificate certs/jira.cer; ssl_certificate_key ...
-1
votes
1answer
137 views

Howto urlrewrite for subdomain in IIS 8

I have 2 domains on server2012, IIS8 www.abc.com and www.xyz.com mailenable works like this way: www.xyz.com/mewebmail I want users to access their mails like that: webmail.abc.com this means I ...
0
votes
0answers
59 views

Nginx reverse proxy forces 301 on subdomain (and it shouldn't)

So I'm using Nginx (1.4.3) to reverse proxy a domain and sub-domains. I installed SSL certs to handle the main domain (example.com) and a couple sub-domains (lets say test.example.com and ...
0
votes
1answer
161 views

IIS 7.5 URL Rewrite looping

I have a webapp that is located in /subdir1/subdir2/ I'd like to simplify it for the users by adding a subdomain sub.domain.com but it keeps looping. I'd tried to add additional rules to prevent it ...
0
votes
1answer
219 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 ...
2
votes
4answers
63 views

Forcing SSL with mod_rewrite

I have the following statement and it works perfectly to redirect all requests for "www" on :80 to force the browser to the same location on :443 RewriteEngine on RewriteCond %{HTTPS} !=on ...
0
votes
2answers
97 views

Virtual Host vs rewrite for subdomain

Is there a best practice (for performance reasons or otherwise) for choosing between using a Virtual Host or rewrite for pointing a subdomain to a folder in the root directory? I.e., www.domain.com ...
0
votes
1answer
84 views

subdomain rewrite rule on apache (converted from nginx)

A friend of mine is moving hosts and I've been tasked with sorting out his rewrite rules. I've got most of them done, barring this awkward subdomain rewrite rule: server { listen 80; server_name ...
0
votes
1answer
765 views

Configuring httpd.conf to handle wildcard domains with *multiple* scripts

I have a full-blown site like: http://www.example.com (uses index.php) http://www.example.com/scriptA.php http://www.example.com/scriptB.php I now want to have the possibility of setting up ...
2
votes
2answers
3k views

nginx redirect to another domain not forgetting about the subdomains

this is rather a quick one: How do I redirect to another domain and still forward the subdomain? Example: http://foo.domainone.com/bar.php -> http://foo.domaintwo.com/bar.php Thanks in advance!
0
votes
2answers
133 views

Subdomain does not tail directory on nginx

I'm trying to make the subdomain work when accessing to dev.domain.com, it should tail to the /var/www/domain.com/www/dev where /var/www/domain.com/www/ is the root of domain.com. When I access to ...
3
votes
2answers
860 views

How to create this type of subdomain: example.test.domain.com

I've managed to find a rewrite for making subdomains (which I have a wildcard domain pointed to my server; *.domain.com. If I go to test.domain.com, it works just fine which transverse to: ...
0
votes
3answers
337 views

How do I configure my server to forward “domain.com” to “www.domain.com”?

I need to forward all visitors from "domain.com" to "www.domain.com". I know this has something to do with altering the nginx config file but am not sure what to do or what code to use. I am using ...
2
votes
2answers
758 views

nginx rewrite config

I'm pretty new to nginx and am trying to setup some pretty simple rewrite rules, but they don't seem to be working. Just for your info, this server { .. } has its server_name domain.com *.domain.com. ...
0
votes
2answers
2k views

nginx redirect subdomain to a folder

In Nginx, I would like to redirect my subdomain.domain.com to domain.com/sub/ .how do I do that ? I would like to use the existing sites config file for domain.com instead of creating a new one. the ...
1
vote
1answer
403 views

How can I have a subdomain point to a specific port on 1&1 VPS account

Does anyone know how I could setup my 1&1(host) Virtual Private Server account to have sub-domain that points to a specific port on a Windows Server 2008? So I want http://{something}.{site}.com ...
0
votes
1answer
895 views

How to HTTP Redirect while maintaining subdomain using IIS 7

My question is similar to Redirect subdomain to subdomain on new domain except I'm using IIS 7. The application is ASP.NET framework 2.0. I have a url cust1.olddomain.com and I need to redirect to ...
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
1k views

How to hide subfolder when using Web.config for subdomains?

I have FTP access to my ASP.NET Websapce (IIS 7) and I route subdomains with a Web.config in the web root folder. She looks like this: <?xml version="1.0" encoding="UTF-8"?> ...
0
votes
1answer
200 views

nginx. Proxy subdomain to blogspot

I want to set up my nginx to proxy the subdomain http://blog.mydomain.comtohttp://myblog.blogspot.com, but I don't want to rewrite the url. So the user will see mydomain.com url instead of the ...
0
votes
1answer
318 views

Rewrite Subdomains in Tomcat

I know with apache you can rewrite subdomains to folders dynamically, as shown in the following: http://muffinresearch.co.uk/archives/2006/08/20/redirecting-subdomains-to-directories-in-apache/ but is ...
3
votes
1answer
803 views

Apache mod-rewrite rule to change subdomain.domain.tld to domain.tld/subdomain

What would the rewrite rule be to change subdomain.domain.tld to domain.tld/subdomain? Or should I look at a VirtualServer directive to take subdomain.domain.tld and serve it from a DocRoot that ...
2
votes
1answer
1k views

Is there a way to have a virtual directory in iis 7 point to another domain?

Let us say I have two subdomains: http://content.mydomain.com and http://app.mydomain.com. http://content.mydomain.com is pointing at a different server than http://app.mydomain.com is. Is there a ...