0
votes
0answers
53 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 ...
1
vote
2answers
42 views

Lighttpd rewrite subdomains to subfolders

I have a server (itself on a subdomain) with wildcard DNS pointing to it. The server is running Lighttpd and PHP. I need requests to http://any-subdomain.server.example.com to rewrite to ...
-1
votes
1answer
119 views

mod_rewrite: Redirect https://example.com to https://sub.example.com [duplicate]

I have an domain example.com running on an Apache Server and I want to redirect every call to https://example.com to https://sub.example.com. I have a Virtual Host configured like this: ...
2
votes
2answers
193 views

Use subpath internal proxy for subdomains, but redirect external clients if they ask for that subpath?

I have a VirtualHost that I'd like to have several subdomains on. (For the sake of clarity, let's say my domain is example.com and I'm just trying to get started by making foo.example.com work, and ...
0
votes
2answers
171 views

Main domain is redirecting to subdomain

I've a domain domain.com and made one sub domain 'forum.domain.com'. I'm using Apache2 and added one A record to the dns records and made virtualNameServer as: <VirtualHost *:80> ServerName ...
1
vote
0answers
115 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/". ...
1
vote
0answers
81 views

Mass virtual hosting and subdomain

I'm trying to setup zero-config web-development environment: wildcard DNS plus dynamic virtual hosts. Here is my v-hosts config: NameVirtualHost *:80 <VirtualHost *:80> ServerAlias *.dev ...
0
votes
2answers
1k 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 ...
1
vote
1answer
481 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 ...
0
votes
1answer
177 views

mod_rewrite redirect subdomain to folder [duplicate]

Possible Duplicate: Redirect all subdomains to subfolders I have a wordpress blog at the url http://www.orpheecole.com, I would like to setup 3 subdomains (cycle1, cycle2, cycle3) being ...
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 ...
1
vote
1answer
69 views

Mod_rewrite display subdomain.domain.com and call domain.com/subdomain/ for SSL

I have a website secured by a standard SSL certificate, securing a few different shops under different subdirectories. Ex. domain.com/shop1/ The shops are also accessible via a subdomain e.g. ...
0
votes
1answer
742 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 ...
0
votes
2answers
402 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
111 views

Apache subdomain redirection failing

I just bought the domain vas.im, I added a DNS rule for vas.im and www.vas.im, then I tried to get apache2 to redirect the latter to the former. I enabled mod_rewrite, appended ...
0
votes
0answers
233 views

apache mod_rewrite subdomain, domain and url arguments

I am trying to use mod_rewrite to capture a subdomain, domain, and the arguments passed with the url. I have multiple domains pointing to a single ip address, with both @ and * wildcard a-records, so ...
2
votes
2answers
147 views

Apache Rewrite Mod

I am trying to achieve virtual subdomain as my hosting provider has set a limitation on the number of subdomains I can have! I already have a wildcard DNS entry so all subdomains are accepted and send ...
0
votes
1answer
552 views

Redirect subdomain virtual host subdomains to path

I used Apache's virtual host for a ton of subdomains for greptweet.com, where each twitter username is a subdomain, like <username>.greptweet.com. Problem is ... subdomains can't have ...
1
vote
1answer
227 views

Website integration: Frame, redirect or virtual domain?

I'm overwhelmed by the many choices one has in website design. I'm probalbly asking something really easy to set up, but since I don't have any experience, I'm looking for help. Current Setup I've ...
8
votes
1answer
179 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 ...
0
votes
1answer
112 views

Mirroring my website through a secure subdomain

Attempting to get my site to comply with the limitations of an edge content delivery network, I have been forced to push my security certificate root from https://www.mysite.com to the subdomain ...
0
votes
0answers
234 views

Automatic subdomains on local dev machine

I have working localhost on my Fedora 15. Directory tree look like this /var/www/html/default /var/www/html/projects /projects/foo /projects/bar /var/www/html/devel ...
-1
votes
1answer
311 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
330 views

ExpressionEngine, mod_rewrite, and subdomains

Thanks in advance, everyone; this one's a doozy. I've been tasked with porting a subdomain, that was previously hosted on its own server, into an existing ExpressionEngine installation. Previously, ...
0
votes
1answer
530 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
596 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 ...
0
votes
1answer
517 views

Resolve local subdomain on apache for paths within user dir

On Apache 2.2.x I've activated mod_userdir. I used the default setup, so that http://localhost/~name/ will be connect with ~name/public_html/ and a path within public_html, e.g. ...
2
votes
1answer
115 views

Virtual Subdomains

I would like to manage subdomains exclusively through .htaccess. I am able to catch subdomains that I set up - for example, support.testsite.com - currently, I redirect that to testsite.com/support. ...
0
votes
1answer
103 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
174 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 => ...
1
vote
1answer
912 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
774 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) ...
0
votes
2answers
100 views

forum.mydomain.org to mydomain.org/forum/

Would I be possible to rewrite forum.mydomain.org to mydomain.org/forum/ with mod_rewrite? Because I cant get subdomains working -- Update -- Sorry Chris, your answer didn't work. My domain has ...
0
votes
2answers
1k views

Redirect subdomain to hidden folder using mod_rewrite

I want to keep my blog in subfolder domain_com/htdocs/blog and access it using blog.domain.com. I can obtain it using apache's mod_rewrite: RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ...
0
votes
1answer
678 views

apache - redirect suddomain to main domain

short story: I'm new to apache (and sysadministration in general) and trying to redirect a subdomain to my main domain. I already have a rewrite rule that get rid of the 'www.' subdomain. long story: ...
0
votes
1answer
59 views

Changing dirs into subdomains

I have an Apache 2 on Debian server and I am trying to do dynamic subdomains based on dirnames. bind is configured corretly for wildcard dns entry. For example: There is this specific dir for www ...
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 ...