Subdomain And Directory Question
Mar 27, 2008
How do those websites do a website like this.
[url]
But when you go to
[url]
It's not there. O_o Cuz you know how when you create subdomains in cpanel, it will create a folder for you? I wanted to do it where,
[url]
doesn't rely on that folder, but acts more like a public_html directory.
View 10 Replies
ADVERTISEMENT
Feb 26, 2008
i'd like to use a code similar to the one below, to rewrite a sub directory to a subdomain. www.domain.com/aoa/info/ to info.domain.com and then error 301 if someone goes to www.domain.com/aoa/info/ directly
# rewrite foo subdomain requests to foo subdirectory
rewriteCond %{HTTP_HOST} ^foo.example.com
rewriteCond %{REQUEST_URI} !^/foo/
rewriteRule (.*) /foo/$1 [L]
#
# Prevent direct client access to foo subdirectory
rewriteCond %{THE_REQUEST} ^[A-Z]{3,9} /foo [NC]
rewriteRule ^foo(.+) [url]
View 5 Replies
View Related
Aug 20, 2007
I have a problem here.
I have 2 domain on 1 account, which one is called domainA.com & domainB.com is an add-on.
I created 2 same subdomain name which are assigned to same subfolder!
subdomain.domainA.com (/public_html/subdomain)
subdomain.domainB.com (/public_html/subdomain)
The question is: How do i change domainB subdomain folder to something else? (eg. /public_html/domainb/subdomain)
View 1 Replies
View Related
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
Feb 25, 2015
I use plesk 11, I was creat sub directory: domain.com/test. but I access via test.domain.com is ok, but domain.com/test is error " page not found" how to I access via domain.com/test ?
View 2 Replies
View Related
Sep 28, 2014
I'm setting up a SAAS service which is built on top of Laravel. To put it simply the service itself knows whether its being called from a sub.example.com or just example.com and serves a correct response accordingly. So going to sub.example.com will use the same index.php file as example.com but the routes and controllers within the application will provide a different response. sub.example.com will show a tenant login page where as example.com will show a new tenant subscription page or something else.
So when someone new subscribes I add a new entry to the database with a subdomain name for them and when a request comes from that subdomain and they are logged in it will show them their information. Easy right.
There is a problem though with setting it up with Plesk. When I add a wildcard subdomain, it will look for /subdomains/sub/ for the files which is a bit problematic since I want it to serve the files from the same place as the domain example.com.
Is there a way to configure that so that regardless of the subdomain it will try and serve the exact same content as my main domain?
View 2 Replies
View Related
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
View Related
May 31, 2007
I have a situation like this:
There is a directory say, "Master" and inside, "Master" there is sub-directory, "Slave". A user who has access to, "Master" should be able to access, "Slave" automatically. However, a user who has access to, "Slave" should not have access to, "Master". Inside cPanel this type of protection is not possible.
View 3 Replies
View Related
Dec 11, 2008
How do I direct my httpd file to point to:
home/USER/public_html
instead of:
C:Users estetc...
I want to do this to make my test server just like the remote server.
View 5 Replies
View Related
Sep 18, 2008
I want to move the entire contents of a directory tree to another directory.
So for example we may have a directory with 15 directories inside, each directory contains files itself. I want to copy all the files from the directory tree into another directory located somewhere else one the file system. I want only the "files" to end up in the other directory and not the file structure too.
Im running CENTOS latest version.
View 4 Replies
View Related
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
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
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
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
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
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
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
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
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
Jul 12, 2009
Is it possible to change DNS to a subdomain when the domain is hosted in a VPS?
What about for a dedicated server or a shared hosting?
View 8 Replies
View Related
Nov 2, 2009
I have a design client who's main site (eg. site.com) is currently hosted, let's say, at some-other-host.com. He wants to add a blog to his site. I could just set up a subdomain for it and be done with it, but for SEO purposes, I prefer to put his blog on my server which is a different IP.
So is there a way to put his blog, as a subdomain, on my server even though the main site is hosted elsewhere? Is there some magic that can be done in the DNS settings (cpanel/WHM) that can point to the files on my server? Or does he have to simply buy another domain for the blog?
View 5 Replies
View Related
May 27, 2009
I have a client that we will call "Domain.com" (example for this question).
Domain.com is a huge company that has their own servers, etc. etc.
However, they want me to host one of their subdomains for them...
[url]
Is this possible to host only that one particular subdomain for domain.com or are they going to need their root domain (domain.com) with me before I am able to host this subdomain.
And, if I can host only the subdomain, how do I do this?
Its just one of those things I have never done before in my years of hosting.
View 3 Replies
View Related
Nov 3, 2009
I currently have a domain example.com If I create a subdomain e.g. a.example.com and b.example.com can I host these subdomains with 2 different hosting comanys
View 3 Replies
View Related
Jun 6, 2008
I own a domain, www.mysite.com, and wanted to create a subdomain (sub.mysite.com) but wanted to host that sub domain on another host.
In otherwords, mysite.com is on my own dedicated server, but I wanted to host sub.mysite.com on lunarpages, godaddy, or any other host.
I didn't see this ability on Godaddy or Lunarpages which leads me to the question which hosts allow me to use my own subdomain while keeping my main domain on my dedicated server?
View 11 Replies
View Related
Mar 16, 2008
I'm using DirectAdmin as a CP on one of my server & recently I bought a new windows server with plesk as CP.
My DOMAIN is on my 1st server where i'm using Directadmin. I want to resolve my subdomain to my new server.
View 7 Replies
View Related
Apr 26, 2008
i have two servers with whm/cpanel and centos,
i host my domain.com on server-A and create a account with subdomain sub.domain.com on server-A,
some days later,
i move the account website to server-B,
a> i change the domain of sub.domain.com to sub2.domain.com on server-A from whm,
b> and i edit the dns from whm and add a a address record to point to the server-B.
i think my setting is right and the link will run well,
but i am not sure why sometimes people can not link the sub.domain.com,
and they check do the check "ping sub.domain.com",
and they will get the ip of original server-A,
because it assail me for months and i'm not sure how to fix it completely.
View 5 Replies
View Related
Jun 27, 2008
I am a server admin.
Recently, when I set up new user account, there's something strange in FTP.. ( Please check the image for detail )
Besides, all the new set up subdomain cannot use (no matter new or old user) and 404 error occur.
View 2 Replies
View Related