1
vote
2answers
21 views

Is it possible to configure a .htaccess file to access example.com/subdomain/ without any redirects?

I need to configure 2 CMS's on a domain. The first is on example.com. The other is on subdomain.example.com. Is it possible to configure a .htaccess file so that the second CMS is accessible as ...
0
votes
0answers
7 views

I can't access a subdomain, .htaccess [closed]

I made a subdomain for my website, something lilke test.example.com. In the main folder of the webhost I do not have any .htaccess file, but in the folder "test" I have one. when I access the ...
3
votes
1answer
54 views

Best way to move site from subdomain to root through cPanel?

I have an old Wordpress blog hosted on a subdomain (sub.mysite.com) with hundreds of posts. The root domain is actually empty and redirected to the subdomain. Now I want to move the site from the ...
0
votes
0answers
67 views

How to prevent a 404 Error when creating a subdomain and using www to access it?

I have installed a multi-site installation of WordPress onto my domain. I then added the necessary code to the wp-config.php file and .htaccess as instructed by WordPress. I also installed a plugin ...
1
vote
1answer
318 views

Redirect Google crawler to different robots.txt via .htaccess

I have googled for the answer all day and still couldn't find an answer. I have a virtual subdomain www.static.example.com which is a mirror site of www.example.com. It means I have just one root ...
1
vote
1answer
78 views

CDN virtual subdomain causes duplicated content

I have created a subdomain and a CNAME record which points to the domain root. The subdomain www.static.example.com is actually a copy of the entire website www.example.com and it is supposed to act ...
0
votes
2answers
63 views

Point new domain to existing websites sub-directory?

I have a website (site1.com) that has another site being built within it (site1.com/newsite). My client wants to create a new domain name and have it point to the directory that houses the new site. ...
2
votes
1answer
1k views

Redirect with HTTP_HOST redirects to sub subdomain

The settings I have the following .htaccess rule RewriteCond %{HTTP_HOST} !^www\. RewriteCond %{HTTP_HOST} !^de\. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] This works great to ...
1
vote
2answers
164 views

DNS created and pointed to new IP, but showing a blank page - do I have to redirect it using .htaccess?

How would I go about configuring my web server to handle a domain that's already configured using DNS to then redirect it to a folder? My friend pointed his domain forum.example.com to my forums at: ...
2
votes
1answer
77 views

Prevent Google Indexing SubDomains

I have cPanel Hosting with only 1 IP. I'm in the process of pointing all my TLDS over to this server. I have created 'Addon Domains' and all the folders from which it creates are located in sub ...
0
votes
1answer
202 views

Keep current .htaccess file but add subdomain handler

Below is my current .htaccess file. I want to add a method by which I can conduct a simple pass-through if someone hits my subdomain. My current .htaccess is designed to grab any one who comes to my ...
0
votes
1answer
764 views

.htaccess Redirect based on subdomain

I'm looking for some help in accomplishing redirects based on the subdomain. For example if some tries to access: http://1.test.com it will redirect to: /file.php?test=something and if ...
3
votes
2answers
152 views

Redirecting WWW.website.com to website.com

I ranked my site at Nibble.com and i was going through everything, checking for ways to improve my website, and I noticed that www.website.com was classed as a duplicate of website.com. How do I ...
0
votes
1answer
85 views

Most efficient way to forward domain.com to example.com/subfolder?

Title says my entire question. I think I saw someone forward domain.com to example.com/subfolder and have spent about a week trying to figure out how to best do this.. My goal is to have user type in ...
2
votes
1answer
321 views

Seeking .htaccess help: Converting multiple subdomains (both HTTP and HTTPS) to www.domain.com using .htaccess

I've been trying to get an answer to this question on other forums (the folks at SuperUser thought this was the place I needed to post) and via my connections, but I haven't gotten very far. Hopefully ...
3
votes
1answer
211 views

Subdomain In Addon Domain Is Not Working

I added a new addon domain to my cPanel hosting. With the new added addon domain, I try to make some subdomain of it. But, the subdomain is not working like subfolder does. This is my situation: ...
2
votes
1answer
701 views

.htaccess 301 Redirect for wildcard subdomains

I run WordPress in Network mode, which means I can have multiple websites running off one installation of WordPress. Each website runs as a subdomain. WordPress handles this using .htaccess, and a ...
1
vote
1answer
269 views

.htaccess Forward all mail subdomains to /webmail/

I would like to write a .htaccess rewrite command that takes any url with a subdomain mail and forwards them to whatever domain included that subdomain with /webmail at the end. e.g. mail.zane.com ...
0
votes
1answer
314 views

How to silently auto-load from a subdirectory, but allow internal paths to think the file is located at site root?

I have files in my site root, and also files in its "Iternet_IE" directory. I need to: 1.) be able to call/include other files (e.g. headers or footers) from within files at either of those ...
1
vote
1answer
939 views

Redirecting a subdomain to an HTTPS website

I need to redirect a subdomain on my website to a third party HTTPS website. We have our website hosted on GoDaddy and I tried their subdomain forwarding mechanism but that didn't work. That's when I ...
4
votes
1answer
189 views

Do Dynamic Subdomains Harm SEO or not?

I am establishing a new website for just resumes, and I structured my htaccess as to provide dynamic subdomains as: marketing.resumedomain.org/index.html sales.resumedomain.org/index.html ...
4
votes
2answers
3k views

.htaccess directory to subdomain

I have been trying to make a subdomain from a directory (made by .htaccess) to be used as the main page starting like http://domain.com/sub/2/3/4.html and turning into ...
5
votes
2answers
1k views

Redirect/rewrite dynamic URL to sub-domain and create DNS for subdomain

I have created an application in PHP, I would like to re-direct the following URL to corresponding sub-domain. Dynamic URL pattern: http://mydomain.com/mypage.php?user_name=testuser I wish to ...
1
vote
0answers
69 views

Setting up a subdomain for an already existing subfolder [duplicate]

Possible Duplicate: Subfolder won't permenantly redirect to subdomain I have a forum installed in a subdirectory (http://www.example.com/forums/), but I want to have it accessed through ...
0
votes
1answer
333 views

Adding 1 subdomain using .htaccess

Alright, so unlike other solutions I only want one subdomain to appear to be added. Say I wanted example.com/folder/page.php to be displayed as foo.example.com/folder/page.php, how would I go about ...
0
votes
1answer
402 views

.htaccess mod_rewrite domain to subdomain

I need to redirect any domain to a sub-domain. I know this has got to be possible but for the life of me i can not figure it out. Any help is appreciated. For example: domain1.com domain2.com ...
2
votes
3answers
774 views

Subdomains vs folders, for multi account/users application

So, for a multi user web app, what is better: http://username.domain.com Or http://domain.com/username I would like to get feedback about security, scalability and maintenance specifically, app ...
2
votes
1answer
451 views

Duplicate content for sub domains i.e. example.com/subdomain/index.php seen the same as example.com/subdomain/ [duplicate]

Possible Duplicate: What is duplicate content and how can I avoid being penalized for it on my site? I have a website with some sub domain folders and seomoz is picking them up as both ...
2
votes
2answers
8k views

Redirect/Rewrite Subdomain to Subfolder

I'm trying to redirect a subdomain to a subfolder e.g. forums.domain.com to www.domain.com/forums Note that I started the forums in the subfolder format but worried that members might mistakenly try ...
1
vote
3answers
116 views

mod_rewrite: rewriting http://$SOMETHING.app.example.com/ to http://www.example.com/app/$SOMETHING

I'm trying to make http://$SOMETHING.app.example.com/ transparently rewrite to http://www.example.com/app/$SOMETHING. The config below is giving me a 404 and I'm not sure why. ServerName ...
3
votes
4answers
2k views

How to create .htaccess to block access to a subdirectory that hosts a separate domain

So I am pretty noob at with creating code in .htaccess, but I know it is what I need to accomplish a pretty simple task. So here is what I want to do. I have a main domain, (me.com), and I am hosting ...
3
votes
2answers
134 views

Implications on automatically “open” third party domain aliasing to one of my subdomains

I have a domain, let's call it www.mydomain.com where I have a portal with an active community of users. In this portal users cooperate in a wiki way to build some "kind of software". These software ...