How To Hide A Subdirectory Pointing To A Subdomain

Apr 25, 2007

On most servers using a vhost you can make a subdomain point to a subdirectory.

so www.host.com/stuff would be stuff.host.com

That works fine for me. I now want to avoid people being to access the www.host.com/stuff and always have to go via the subdomain.

If I create a rewrite rule I'll get an infinite loop as the subdomain and subdirectory will keep on going to each other.

What is the proper way of disabling access via the subdirectory?

View 1 Replies


ADVERTISEMENT

Redirecting Forum From Subdomain To Subdirectory

Apr 25, 2009

We are wanting to move our forum from a subdomain where it lies currently to a subdirectory of the main site.

I know that this could be done via htacess, but I am wanting to make sure that we don.t lose any of the backlinks that we have coming in, or any page rankings that we have accumulated.

I have a htaccess rule, but I guess I need to know if

a) it is Correct

b) where to put it

Now please bear with me as I cant post urls, so this bit is quite difficult to get out... I have replaced the link elements with CAPPS, such as www becomes 3WS

Options +FollowSymLinks -Indexes
RewriteEngine on
RewriteCond %{HTTP_HOST}!^3WS. [NC]
RewriteCond %{HTTP_HOST} ^(.*).DOMAINHERE.TLD [NC]
RewriteRule (.*) HTTPCOLONSLASHSLASHDOMAINGOESHEREWITHTLD/%1/$1 [R=301,L]

Do i still need to point the subdomain at a folder with just this in, and then have a separate folder where the actual forum goes....

or do I put this in the htaccess, then also point at the directory to be the location for the /forum/

View 1 Replies View Related

Pointing Subdomain To Different Server With IIS - How

Jul 3, 2008

I have a server running IIS that I have a primary website hosted on, let's call it...foo.com

So foo.com is hosted and setup through IIS, resolving fine. Now, I have created a site on a different server (not on the same network) to run a subdomain called 'local.foo.com'. How do I get IIS to point all traffic for local.foo.com to the IP of the server hosting the subdomain?

I tried adding a hostname to the primary domain in IIS through "Properties" > "Web Site" > "Advanced" but I am stilling getting the Invalid Request Bad Host Name error.

View 2 Replies View Related

Moved Site, Subdomain Still Pointing To Old

Sep 6, 2007

I just moved my site to point to a new server (changed nameservers) and everything is working fine but a subdomain.

My subdomain links.example.com still points to old site when example.com points to the new site.....

Should I delete that subdomain at the old host?

Should I just be patient?

Should I change nameservers for subdomain at old host?

The subdomain is configured at the new host already.....

View 0 Replies View Related

Subdomain Pointing To An Html File

Apr 1, 2008

I have a subdomain probandoe.freehostia.com and I wanted to redirect this subdomain so that it points to

probandoe.freehostia.com/pagina.html

Does anybody know how to do this?

View 9 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

How To Use .htaccess To Remove Subdirectory...

Apr 7, 2007

Is it possible to use .htaccss to remove the subdirectory from a url? The reason I ask it that the script I want to use requires members to be in a /users/ directory, and I would like to remove that part of the url. For instance...

can I use .htaccess to change www.thewebsite.com/users/username

to www.thewebsite.com/username

I have absolutely no need to access the /users/ directory without the username, it's just that all accounts are created in that directory.

Is it possible?

View 1 Replies View Related

Mod_rewrite Move System To Subdirectory

Jul 16, 2008

I'm currently trying to set up a an old Project Management System we developed in house to be able to be run from a subdirectory (currently it is designed to run from the DocumentRoot). I figured I would be able to just throw together some mod_rewrite rules to be able to rewrite all requests to the subdirectory, but still haven't had any luck.

I'm pretty good with regular expressions, just not alot of experience with mod_rewrite.

Here's the idea I'm going for

Code:
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/sub
RewriteRule (.*) /sub/$1

The PMS is littered with header redirects and stuff, so it'd be nice to be able to do it all from an .htaccess file or httpd.conf (if necassary).

View 5 Replies View Related

How To Change Php Files Permissions In Directory And Subdirectory At Once

Nov 9, 2007

How to Change php files permissions in directory and subdirectory at once ?

I want to change the permissions of php permissions to be 644 in /home/user/public_html/forum and all forum subdirectory using SSH.

View 2 Replies View Related

Hide Directory

Jul 9, 2008

I want hide the directory of my site:

[url]

How to hide the content list there?

View 4 Replies View Related

Hide Your Hosting

Apr 18, 2008

i was checking this [url] does any1 know how can i hide my domain & Hosting companies names? i don't want any1 know what hosting i am using

View 14 Replies View Related

Hide Server's IP

Mar 17, 2007

I've a windows 2003 server, I need to hide this server IP, that's mean I need no one can know IP of my server.

Service running on servrer:
- DNS
- IIS
- DigiChat

View 4 Replies View Related

What To Hide ....From Whois Lookups

Apr 13, 2008

Is there a way you can hide from the whois lookups how many site's you have hosted on your server? Like, for the reverse IP, usually it'll mention how many sites are hosted on the server when you do a whois lookup.

Is there a way to prevent it from doing that?

View 2 Replies View Related

How Can I Hide Server Type

Jun 16, 2008

How Can i Hide My Server Type

And writing Secureb By ....

And how Can i Hide uname -a: Linux server.xxxx.net 2.6.18-ovz028stab053.14-enterprise #1 SMP Mon Jun 2 18:25:30 MSD
2008 i686

From Php Shell Like c99

i do some way to hide it But I cant hide it from php shell

View 9 Replies View Related

How To Hide The Page Extension

Jan 6, 2007

The problem is that i want to hide the php extension from the visitor so that no one knows what scripting language lies beneath..

If I use the following solution {

I think I should write snippets of php codes inside html files.. so i want apache to go through each html file to see if there are php code or not..

I write the following mime types with cpanel:

application/x-httpd-php .php .adp
application/x-httpd-php .php .htm
application/x-httpd-php .adp
}

Then {
Error appears when I go to any page in the site "Internat Server Error"
}

Else if {
I can use .htaccess to do the same effect in a particular directory
}

Then {
The same error appears "Internal Server Error"
}

Else {
What can I do?
}

View 0 Replies View Related

How To Hide Server Messages

Nov 18, 2007

messages such as

Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.7a FrontPage/5.0.2.2635 mod_bwlimited/1.4 mod_jk/1.2.25 mod_mono/1.2.4 mod_auth_passthrough/2.1 PHP/5.2.4

when you go to browse a folder with no index file..

is there away to remove this?

View 3 Replies View Related

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 View Related

Hide Files/directories On Apache

Jan 20, 2008

how can i hide all files and directories in public_html so when using apps suck Flash Get Site Explorere and similar software it will not show any file or directories in public_html.

View 5 Replies View Related

How To Hide DNS Info On WHOIS Lookup

May 18, 2007

I want to hide my NS records on WHOIS lookup, or show a fake or something so that no one can find me, Is it possible,

View 5 Replies View Related

Hide Php/mysql Errors On Live Domain

Apr 27, 2009

how can i stop php and mysql errors from being displayed on a live site. I'd rather just check the error log than have the errors displayed to all users.

View 4 Replies View Related

How To Hide Nameserver, Using ENom DNS Dns1.name-services.com

Jan 15, 2009

I have a dedicated server using one of my domain as the nameserver; basically ns1.mydomains.com / ns2.mydomains.com

Lately my sites are getting hacked and want to use DNS nameserver provided by the registrar, eNom to hide my domains. For example, if I use dns1.name-services.com/dns2.name-services.com or ns1.domaincontrol.com (GoDaddy), it will be harder for people to track of what domains I own, etc.

Once I change the nameservers to dns1.name-services.com, what do I need to do on the dedicated server/WHM side? A records, CNAME, MX records?

View 9 Replies View Related

Apache :: Hide Port 8080 On Display?

Nov 4, 2013

i m using xampp on window. how to hide port on url?

View 5 Replies View Related

Plesk 12.x / Linux :: Hide / Remove WordPress Toolkit

Jan 23, 2015

Is it possible to completely remove the WordPress Toolkit.

Or at least to remove the button from the BasemenĂ¼ at "Server Management"->"WordPress" ....

View 2 Replies View Related

Somebody Is Pointing Their Domain To My IP

Nov 5, 2009

i purchased a VDS and a domain name from godaddy 2 weeks ago. I pointed my domain name to my server and i guess work just fine. but when i googled my domain name i found a damain which is pointing to my website. how can a stop this domain from pointing to my IP?

View 11 Replies View Related

What To Do About Another Domain Pointing Toward Your IP

Jun 27, 2008

We recently moved one server to a colo provider and were issued new IP's. One IP is causing us trouble.

We have been getting blocked from sending email to AOL and other free email companies.

When we contacted AOL we were told that they had received complaints about our IP and it was blocked.

Upon doing a RBL check and IP check, it seems that the former owner of our IP is still pointing his domain via eNom to our IP and had at one time sent spam.

If you reverse DNS our IP's.

bad domain -> our IP
our domain -> our IP

We contacted the eNom legal department (bad domain's registrar) about the problem.

They responded that they could not do anything about it, only the registrant could.

The spammy domain registrant obviously does not respond to our contacts.

What is the best course of action?

View 7 Replies View Related

Domain Pointing

Jun 24, 2008

i have dns problem as i think idont know how to solve it or how did it happen iam using this site from more than 8 month i registered it in godaddy as my main domain name register and iam hostingit on my ressler account with many other domains but last night i found that the domain is pointing to my server but it show godaddy parking page i cheeke the name serv its pointing to me i do this repport in dns test i found it is also pointing to go daddy how can that happen and how can i solve it to show my web site again:

View 5 Replies View Related

Domain Pointing ...

May 7, 2008

(Background) Looking for some advise on domain pointing currently I have a UK server hosting my billing system which is replicated each evening over to my US server

I want to sub domain my primary domain to uk.yourdomain.com & us.yourdomain.com

As redundancy I would also like uk.yourdomain.com to point to the US server should the UK one fail - giving me redundancy, I figure in the next few months I can do this on our AU - creating au.yourdomain.com and replicating our billing system to that datacenter too.

(question) - can this been setup and configured from server level, ie on my primary server WHM dns zones OR should this be created on a registrar level?

View 1 Replies View Related







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