Apache :: Redirection Page From Subdomain To New Subdomain

May 11, 2015

Wordpress installation (WPML with 3rd level domain es. site. com, fr. site. com).

I need to redirect page from subdomain to a new subdomain

Example:
esp.site.com/oldpage -> es.site.com/newpage (different subdomain)
esp.site.com/oldpage1 -> es.site.com/newpage
esp.site.com/oldpage2 -> es.site.com/newpage

Source site is very chaotic and there are no clear rule for redirection (no regex )

So I need to redirect every page but syntax:

Redirect 301 esp.site.com/oldpage http:// es.site.com/newpage

doesn't work!

which is the correct syntax ?

Can I manage all from one .htaccess file in main root (www) or should I create "esp" directory (and point old subdomain to it - one for every language) and put .htaccess in every directory with redirection ? 

View 1 Replies


ADVERTISEMENT

Apache :: Redirect Every Single Page From Old Subdomain

May 12, 2015

Wordpress installation (WPML with 3rd level domain es. site. com, fr. site. com).I need to redirect page from old subdomain to a new subdomain

Example:
esp.site.com/oldpage -> es.site.com/newpage (different subdomain)
esp.site.com/oldpage1 -> es.site.com/newpage
esp.site.com/oldpage2 -> es.site.com/newpage

Source site is very chaotic (static pages + wp pages) and there are no clear rule for redirection (no regex ).So I need to redirect every single page but syntax:

Redirect 301 esp.site.com/oldpage http:// es.site.com/newpage doesn't work!I think "esp.site.com" in source page is not acceptable syntax..which is the correct syntax ? Can I manage all from one .htaccess file in main root (www) or should I create "esp" directory (and point old subdomain to it - one for every language) and put .htaccess in every directory with redirection ?

View 1 Replies View Related

Subdomain Redirection

Mar 30, 2007

Although I'm able to redirect my subdomain to the /htdocs/subdomain directory using a php script, but the URL changes from [url]to [url]

And since I'm on windows, htaccess doesn't seem to work for me. Tried adding VirtualHost thingy into httpd.conf but then Apache doesn't start with it.

Is there any way to redirect [url]to /htdocs/subdir without changing the URL?

View 11 Replies View Related

Wildcard Subdomain Redirection

Jul 19, 2008

I want to wild card subdomain redirection

I want to like this when anyone type *.mydomain.com to will redirect to
[url]

how can i do this.

I have create A record for *.mydomain.com and also add in serveralias www.mydoamin.com mydomain.com *.mydomain.com

View 6 Replies View Related

Plesk 12.x / Windows :: Subdomain (Page Not Found / Page Doesn't Exist)

Jun 21, 2014

I have a problem with my server. I am trying to make a subdomain, and it isn't working. I create it like how in all tutorials says here( click here ) . I completed all fields, but when i try to open the subdomain in a browser page, it's telling me, page not found / page doesn't exist. I have a dedicated server on window server 2008 for my website with a dedicated IP.

View 5 Replies View Related

Subdomain Index Page

Aug 28, 2009

I created the subdomain for my site www.mysite/myclientpotentialdomain, with the only purpose to show my client the mock up of his home page using his potential domain name.
The file is named index.htm and consist only the mock up image.

The problem that I encountered is when I refresh the browser (Firefox) the image disappears. I can see the alt tag, but the picture is gone. Works fine in IE though.
The only difference I have noticed that after the refreshment,

View 13 Replies View Related

Lighttpd And Apache Configuration For A Subdomain

Jul 2, 2008

I was recently inroduced to lighttpd being able to run on apache with a different port. So I setup my lighttpd that way.

lighttpd.conf

Code:
server.modules = (
"mod_access",
"mod_fastcgi",
"mod_cgi",
"mod_accesslog" )

server.document-root = "/var/www/vhosts/domain.com/httpdocs/lighttpd/"

server.errorlog = "/var/log/lighttpd/error.log"

index-file.names = ( "index.php", "index.html",
"index.htm", "default.htm" )
and my httpd.conf

Code:
ProxyRequests Off
ProxyPreserveHost On
ProxyPass /lighttpd http://0.0.0.0:81/
ProxyPassReverse / http://0.0.0.0:81/
Now when I created a folder on my server's httpdocs /lighttpd/

everything runs smooth so I got the lighty to work for me.

Okay now that i figure it works I wanted to run one of my subdomain on lighty so that I can reduce the load on the server. Does anyone know how I can setup one of my subdomain to open with lighttpd and keep everything else on apache?

View 1 Replies View Related

Apache :: 2.4 Subdomain Setup Fails

Oct 7, 2012

I am struggling with this all the day, no answer i found here as well. how to setup proper a subdomain i need. My Apache config has 2 domains configured (on same IP), for the domain2.com i need to setup a sub-domain. Here is what i have so far, but the subdomain keeps redirecting me to domain2.com (main site).

View 2 Replies View Related

Apache :: 2.2.25 - Subdomain Configuration In Windows 7

May 4, 2014

In my computer (Windows 7 Ultimate) I host my sites with Apache 2.2.25 - mod_fcgid-2.3.6-win32-x86 and PHP 5.4.28. In "httpd-vhosts.conf" file from Apache I have my domain set as follows and work fine (http://www.example.com or http://example.com):

Code:
<VirtualHost *:80>
ServerAdmin webmaster@example.com
DocumentRoot "D:/Apache22/vhosts/Example"
ServerName example.com
ServerAlias www.example.com *.example.com

[Code] ....

And I set up a subdomain as follows:

Code:
<VirtualHost *:80>
ServerAdmin director@example.com
DocumentRoot "D:/Apache22/vhosts/DirectorExample"
ServerName director.example.com
ServerAlias www.director.example.com *.director.example.com

[Code] .....

But when I tried to access the page: http://www.director.example.com or http://director.example.com, I was redirected to the page http://www.example.com.

I have DNS configured for "example.com" and "director.example.com". This sites is live in another server.

Error.log files for "director.example.com" and Apache is empty. How can I configure the subdomain to work?

View 2 Replies View Related

Apache :: Add Www To Domain Unless It Is A Subdomain Request

Nov 18, 2014

I would like to rewrite mysite.com to www.mysite.com.

However, if the request is a subdomain (i.e. blabla.mysite.com), then it should not rewrite.

I believe this gets me close, but it will not differentiate the subdomains (i.e., blabla.mysite.com).

View 5 Replies View Related

Apache :: Make Subdomain Appear As Directory?

Oct 10, 2013

I have an ecommerce store. dns at godaddy. A record www points to the 3dr party hosted shopping cart solution on ip a.a.a.a. I also have a blog. A record blog subdomain points to another server b on ip b.b.b.b hosted away from the shopping cart server a completely.

So www goes one place and blog goes to another.The problem is I need to somehow make the blog appear within the main site as URL...blog instead of as a subdomain blog.domain.com.

I cannot access or modify the hosted shopping cart server in any way. I cannot load wordpress there, that is why it is on a completely separate server.I've been told this is perhaps possible with a reverse proxy configuraton on server b where ip b.b.b.b is.So that even though blog. points to server b it can appear that the url is www.mydomain.com/blog and the blog pages off that directory as well.Can this be done via reverse proxy?

View 8 Replies View Related

Apache :: Subdomain Pointing To Base Domain

Jun 7, 2013

Switched from NGINX to Apache2 and now having challenge getting my subdomain s to work properly. Everything worked fine w/ NGINX - so I don't think this is related to my DNS or hosts file setup.

PROBLEM: Calls to dev.domain-name.org are going to www.domain-name.org.

I have tried many different changes to the conf files... NameVirtualHost changes, VirtualHost changes... I can't count how many times I have restarted Apache now.

Here is my setup:

ports.conf
-----------
Listen 80
Listen 443
NameVirtualHost 96.126.xxx.xxx:443 (xxx'd out for privacy on forum)
NameVirtualHost *:80
within sites-available and activated and linked in sites-enabled:

[Code] .....

View 1 Replies View Related

Great Success, Apache Is Working After Subdomain DNS Configuration

Jun 26, 2008

So here's my situation: I have a rented vent server, that I wanted to point vent.mydomain.com to the IP of said vent server. I put an A record in the dns pointing to the server and all is well. When I type vent.mydomain.com into a browser it take me to the cPanel/WHM page saying "Great Success, Apache is working". Is it possible that I can somehow have that get redirected to the main site or no?

Basically if Im connecting with the vent client, I want it forwarded to the vents IP, otherwise I want to have it redirected to mydomain.com.

View 8 Replies View Related

Modifying Apache Status To Include Full SubDomain URL

May 19, 2008

if its possible to display subdomains on the Apachelog page? For example under "vhost" it would list the full website address of each subdomain?

View 2 Replies View Related

Apache :: Getting Subdomain To Accurately Reflect File Hierarchy

May 28, 2014

Apache version 2.4.7
Ubuntu Linux 14.04
BIND version 9.9.5
MySQL version 5.5.37
OpenSSH_6.6.1
Virtualmin version 4.08.gpl GPL

The premise: I am setting up a small, simple torrent tracker front end and back in (xbtit), and it comes with php scripts that should allow me to do a real easy GUI install just by accessing my sub.domain.tld.The story so far: Have a generic "hello world" index.html in my /home/domain/public_html folder, it opens up on browser. I also used virtualmin to create sub.domain.tld, and it made a folder /home/sub/ with public_html and other folders in it.

Inside of /home/sub/public_html I have all the files for xbtit torrent tracker front/back end, and the instructions say that if I now go to sub.domain.tld it will open up the visual web install. When I go to sub.domain.tld it pulls up the generic index.html page that I put in /home/domain/public_html. Why is it pulling up a file that is in an entirely different folder on my server? I'm sure there's just a small change in some configuration file that will tell the server to start reading correctly, and I have been searching, both through virtualmin settings and through online guides to find out what I need to do.

Yesterday I was getting this error, but I think that was before I realized I needed an index.html file in the public_html folder.

ERROR LOG:

H01276: Cannot serve directory /home/maindomain/public_html/: No matching DirectoryIndex (index.html,index.htm,index.php,index.php4,index.php5) found, and server-generated directory index forbidden by Options directive
--
THE PLOT THICKENS

So I just checked my logs, and something very suspicious is going on. I am not doing anything with my server at all right now except loading files to it, and yet all this stuff pops up in the log:

ACCESS LOG:

".249.76.94 - - [28/May/2014:14:10:06 -0400] "GET /hello.jsp HTTP/1.1" 404 414 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
66.249.76.94 - - [28/May/2014:14:10:06 -0400] "GET /hello HTTP/1.1" 404 409 "-" "Mozilla/5.0 (compatible; Googlebot/2.1;

[code]....

I JUST NOW REALIZED that I used to have hosting with hostgator and ran a really basic forum through my domain. It wasn't password protected and I stopped using it, and the next time I checked on it it had been taken over by spam bots. I thought nothing of it as I wasn't using the forum anymore, and I thought I cancelled my hosting subscription and it would get shut off. I just checked hhostgator though and apparently I forgot to cancel, my account has been being charged every month and is now suspended, BUT as you can see above, there's a lot of bot "cheap nikes" spam stuff showing up in my apache log.

View 1 Replies View Related

Apache :: Setup Subdomain / Virtual Host To Redirect To Specific Port And Path

Mar 13, 2013

I am trying to setup a subdomain and/or virtual host to redirect to a specific port and path. I have setup my server with DDYNS through my domain name registar. Through the ddyns client I have set it to assign a subdomain of "outside.name.com" so that my server will have a easy name to get to instead of a dynamic ip address.

I have also setup on my registrars host records another subdomain of "inside.name.com" with a static IP address for internet network accessing to my server.My problem is that I have a service/program on my server that I need access to both internally and externally and this service can only be access through a port of 32400 and HTTP address of /web. (e.g. outside.name.com:32400/web or inside.name.com:32400/web)...

Is there a way that I can create a VirtualHost or Subdomain of "service.*.name.com" that redirects them to ":32400/web" of the hostname they're on? (e.g. service.outside.name.com automatically forwards or proxies--to keep it pretty--to service.outside.name.com:32400/web)

View 1 Replies View Related

Apache :: Unable To Setup Subdomain And Virtual Host To Redirect To Port And Path

Mar 12, 2013

I am trying to setup a subdomain and/or virtual host to redirect to a specific port and path. I am, however, having great difficulties doing this.

I have setup my server with DDYNS through my domain name registar.

Through the ddyns client I have set it to assign a subdomain of "outside.name.com" so that my server will have a easy name to get to instead of a dynamic ip address.

I have also setup on my registrars host records another subdomain of "inside.name.com" with a static IP address for internet network accessing to my server.

My problem is that I have a service/program on my server that I need access to both internally and externally and this service can only be access through a port of 32400 and HTTP address of /web. (e.g. outside.name.com:32400/web or inside.name.com:32400/web)

This is annoying for others to type out and I am just wanting to make it look pretty. Is there a way that I can create a VirtualHost or Subdomain of "service.*.name.com" that redirects them to ":32400/web" of the hostname they're on? (e.g. service.outside.name.com automatically forwards or proxies--to keep it pretty--to service.outside.name.com:32400/web)

View 1 Replies View Related

Subdomain In Other Server, Get "Great Success ! Apache Is Working On Your CPanelŽ"

Jun 11, 2009

if you have a website with 2 or more servers

i have two server, both are using whm/cpanel

i had been pointing a subdomain.domain.com to the second server IP 111.222.333.444 in first server WHM "Edit DNS Zone", its already 48 hours now

now i can login the ftp subdomain.domain.com, its success to login to the ftp

but its still showing this message when open the subdomain site from browser

Quote:

Great Success !
Apache is working on your cPanelŽ and WHM™ Server
If you can see this page, then the people who manage this server have installed cPanel and WebHost Manager (WHM) which use the Apache Web server software and the Apache Interface to OpenSSL (mod_ssl) successfully. They now have to add content to this directory and replace this placeholder page, or else point the server at their real content.

ATTENTION!
If you are seeing this page instead of the site you expected, please contact the administrator of the site involved. (Try sending an email to <webmaster@domain>.) Although this site is running cPanel, WebHost Manager, and Apache software it almost certainly has no other connection to cPanel Inc. or the Apache Group. Please do not send mail about this site or its contents to cPanel Inc. or the Apache Group.

About cPanel:
cPanel is a leading provider of software for the webhosting industry. If you would like to learn more about cPanel please visit our website at www.cpanel.net. Please be advised that cPanel Inc. is not a web hosting company, and as such has no control over content found elsewhere on this site.

About Apache HTTP Server:
The Apache HTTP Server is an open source web server which powers many of the worlds web sites. The Apache HTTP server is part of the Apache Group's many influential projects. Their efforts have helped shape much the world wide web, and they continue to be a dominating force in the web hosting industry.

View 0 Replies View Related

Subdomain In Other Server, Get "Great Success ! Apache Is Working On Your CPanelŽ"

Jun 11, 2009

if you have a website with 2 or more servers

i have two server, both are using whm/cpanel

i had been pointing a subdomain.domain.com to the second server IP 111.222.333.444 in first server WHM "Edit DNS Zone", its already 48 hours now

now i can login the ftp subdomain.domain.com, its success to login to the ftp

but its still showing this message when open the subdomain site from browser

Quote:


Great Success!
Apache is working on your cPanelŽ and WHM™ Server
If you can see this page, then the people who manage this server have installed cPanel and WebHost Manager (WHM) which use the Apache Web server software and the Apache Interface to OpenSSL (mod_ssl) successfully. They now have to add content to this directory and replace this placeholder page, or else point the server at their real content.

ATTENTION!
If you are seeing this page instead of the site you expected, please contact the administrator of the site involved. (Try sending an email to <webmaster@domain>.) Although this site is running cPanel, WebHost Manager, and Apache software it almost certainly has no other connection to cPanel Inc. or the Apache Group. Please do not send mail about this site or its contents to cPanel Inc. or the Apache Group.

About cPanel:
cPanel is a leading provider of software for the webhosting industry. If you would like to learn more about cPanel please visit our website at www.cpanel.net. Please be advised that cPanel Inc. is not a web hosting company, and as such has no control over content found elsewhere on this site.

About Apache HTTP Server:
The Apache HTTP Server is an open source web server which powers many of the worlds web sites. The Apache HTTP server is part of the Apache Group's many influential projects. Their efforts have helped shape much the world wide web, and they continue to be a dominating force in the web hosting industry.

View 5 Replies View Related

[cPanel] Subdomain.domain.com Not Working | Www.subdomain.domain.com - Working Ok

Jul 24, 2007

I have problem,
subdomain.domain.com - not working
www.subdomain.domain.com - working

When I creating new subdomain: subdomain2.domain.com - all working ok, I have problem only with this one domain.

I deleting domain.com, deleting dns zones, deleting account, adding domain to other account - all not working for subdomain.domain.com

View 4 Replies View Related

Using A Subdomain For SSL

Oct 17, 2009

When I was with another host, they set it up so one of my subdomains had a static IP address, and I was able to use this for my SSL certificate. My new host (sharkspace) uses CPanel (other host used HELM) but it seems to me like CPanel could do this as well.

Does HELM have some feature that CPanel does not? How do I set this up? They are telling me that they cannot do this for a subdomain, and I cant afford to go buy a wildcard ssl certificate.

They also told me in the past that the only way to redirect a subdomain was using an iframe (when using the DNS Zone Editor was entirely doable) so im not exactly sure their staff has much of a clue going on,

View 14 Replies View Related

Subdomain And IIS

Mar 17, 2008

I want to create a subdomain "exchange.domain.com"

I want this subdomain to be redirected to another site. Possible? how?

the hoster has a catch all set on my domain, domain.com

but how can I add a subdomain and have that subdomain redirect to a different site in IIS 6 (WS2003)?

View 12 Replies View Related

IPs To Subdomain Only Except One

Dec 19, 2007

to block all IPs to a subdomain, except one. I am sure there are many ways to do this but I need the most secure. The domain does not need the IPs blocked, just the sub domain.

View 3 Replies View Related

Using WHM Tools To Set Up A SubDomain

Aug 15, 2005

I am using PayPal's IPN to set up hosting accounts. It works fine if the user is setting up a domain such as name.com, but if they are using a subdomain from the hosting, such as subdomain.hosting.com, it fails to work. Here is the code I am using ...

View 0 Replies View Related

Dyndns With Subdomain?

Jan 6, 2009

Hi, i was wondering how i would be able to use a subdomain to "dyndns". By dyndns i mean how some people use no-ip.org or dyndns.org to hide their IP address. It doesnt only hide and "mask" but it's basically like being on a normal website, where the website actually changes for each page you go to. For example pretend i was using no-ip.org.

Pretend i dont have a domain and i host a website through my VPS

Instead of 123.456.78.9, i used no-ip.or and it was now website.no-ip.org. But it not only masks, if someone goes to index.php. It would be website.no-ip.org/index.php and if someone went to chat.php, their address bar would say website.no-ip.org/chat.php.

But is it possible to do this with a subdomain?

View 5 Replies View Related

Subdomain Creation

Aug 12, 2009

I am trying to create subdomain for my site [url]but it is not working i tried with another name [url]and it worked however it shows subdomain has been created but dont works. I want the [url]but still it is unable to resolve it

I contacted to the host but i think i will get reply late. anyone knows how to resolve this

View 10 Replies View Related

Subdomain Account

Mar 26, 2009

i got host with cpanel, i need create some subdomain accounts for user, a folder tree like this:

/home/user/www/

/home/user/www/subdomain_user1

/home/user/www/subdomain_user2

each user has ftp account, is this safe? can users use php script to access back to root or other subdomain? if yes how to protect?

View 9 Replies View Related

Redirect To Subdomain

Feb 15, 2009

I am trying to do is have a redirect so the files get redirected to a subdomain. So domain.com gets pointed to domain.newdomain.com. However, I want to keep the current URLs, so say I got [url], the below code is just redirecting that url to [url]rather than
[url]

Options +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^www.domain.com$
RewriteRule (.*) [url]/$1 [R=Permanent]
RewriteCond %{HTTP_HOST} domain.com$
RewriteRule (.*) [url]$1 [R=Permanent]

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved