Htaccess - Moving Site From Subdomain To New Domain

Oct 21, 2007

I have what I think is kind of a unique situation with a site move and Google is not turning up an answer that seems to work.

My site is currently in this format:

www.mydomain.com/site/file.html

And I am "moving" it but also switching from html to php, so the same file would be found at:

site.mydomain.com/file.php

I want to redirect users going to the old pages to their equivalent on the new site, however this is a little bit of a problem because this is a normal subdomain - it is the same directory as before but now there are php versions of the html files.

Right now I have all of the http files redirecting to their php equivilents, but I don't believe this is a desirable solution. Also it creates a problem when people go to www.mydomain.com/site (not indicating a specific file; just the subdir root) because I have www.mydomain.com/site/index.html redirecting to www.mydomain.com/site/index.php.

Quite a mess.

My first option is to put the redirects in the htaccess file on the "old" site. But is this a problem because there are over 500 pages on the site? Does it create a heavy server load because any requests force the server to serve a huge htaccess file?

The next alternative seems the most preferable although I'm not sure how to do it. It seems it could use wildcards so that anyone going to *.html gets directed to *.php or something like that. The only problem is that there are a small number of files that were removed completely and do not have php equivilants (about 5 or 6) and would need to redirect to the index.php in the root

View 14 Replies


ADVERTISEMENT

Subdomain To Main Domain Moving

Jan 23, 2007

I have a domain name as per my sig. I am also creating a subdomain totally in contrast with that site below. My primary domain has one page on it so i would like to:

a) delete the one page on my primary domain

b) Make the contents of my subdomain my primary domain. e.g my domain is www.info-peep.com, my sub will be example.info-peep.com........i would like to make example.info-peep.com : www.info-peep.com......that make sense, as really the sub will be my main site.

Basically wanting to transfer the contents of my sub to my primary. So when people click info-peep.com, it will be the sub's site. Another thing to note is that i am using RVsitebuilder (WYSIWYG) that my web host provides. Also BEAR IN MIND the WYSIWYG editor does not allow me to move pages (sucks) or to copy the page contents.

View 7 Replies View Related

Moving All Data To A New Subdomain

Nov 24, 2008

I am using Wordpress on subdomain.example.com

I want to move all the posts I have on that Wordpress site to:

somewhereelse.example.com

So basically changing a whole Wordpress blog from one subdomain to another subdomain on the same domain.

I want to keep all posts I have.

Could I simply back up the mySQL database and then upload it to the new subdomain? Will this work? I have some doubts as I don't know if the database it is linked to the domain name or not.

View 2 Replies View Related

.htaccess - Redirect To A Subdomain

Jul 10, 2009

I wasn't able to just export and import so I had to manually recreate content. I used the same permalink structure in hopes that I "might" be able to do a re-direct. Just now sure if A)It is possible or B)How to do it.

Example:
OLD LINK:
[url]

NEW LINK:
[url]

Am I able to redirect all traffic that comes in and replace the "www.cgcookie.com/articles" with "cg.cgcookie.com"?

View 4 Replies View Related

Moving 5 GB Site

Dec 4, 2007

I got a new server for a site that contains 5 GB of data. I'm wondering how can I move it? I have root access to both servers.

View 5 Replies View Related

Trouble Moving A Site

Oct 19, 2009

We are in the process of changing web hosting companies and I am having difficulty in moving all the directories. We are a membership based company with over 8,900 members. The original web site (called Site a) has over 26,700 individual directories along with many tutorials in video format. The entire site is approximately 80 GB in size.

When I had the second web hosting company try to move the site via tar they indicated that the tar would abort at about 4 GB every time.

Is there any other way to move this site or get a complete backup of the site. I have no problem moving the MySQL databases.

View 3 Replies View Related

Moving Site: Ssh Advice

Jun 4, 2007

to move one of my sites from 1-st dedicated server to 2-nd dedicated server.

Of course i have shell access on both servers. As site is huge one (60gb space and 99% of files in one folder) going to tar -czvf this folder and move it.

or may be mput all files.

the only problem that i have ... is, that i need SSH commands advice.

if i type [mput *] i must keep window opened. but as u understand 60gb is can be transferred during ~10-15 hours. that's why need to know, is there any command that i must type (with mput *) and close window. So, don't be online all this time and/or keep shell window opened during this tranfer.

View 2 Replies View Related

Moving Large Site

May 23, 2007

to move a site to another server at another datacentre that have approx 100 GB of media files.

Typically for small sites i am able to use server to server ftp to move files.

However, when moving large site like this, ftp might be disconnected and lost track of which files are not transferred.

How can i transfer/move the files (server to server) and resume if disconnected?

View 12 Replies View Related

Moving Sharepoint Site

Sep 22, 2007

I want to move a Sharepoint site (WSS 3.0) to another server. Now my question is how?

I've only found a way by using frontpage 2003 but I don't want/can't do this. I need another way.

The site name will remain the same and everything, but I don't know how to export everything and import on this new server.

View 2 Replies View Related

.htaccess From Old To New Site ...

Mar 10, 2008

I'm trying to learn htaccess, but I'm having issues wrapping my head around this. I need to learn by example. Have several types of 301 permanent redirects that are needed.

Want to redirect a single page to a new page
OLD - [url]
NEW - [url]

Want to redirect a folder, AND any pages in it (preferably without naming EACH page), to a new folder's index
OLD - [url]
NEW - [url]

Want to redirect a subdomain to the primary domain
OLD - [url]
NEW - [url]

Want to redirect a folder, AND any pages in it, to a new subdomain
OLD - [url]
NEW - [url]

Using ISAPI_Rewrite 3 on 2003/IIS6, which uses htaccess commands.

Could anybody here show me what they would do in these scenarios?

I've read and read, and tried and tried, but it never seems to work out correctly. It either fails to redirect, or it redirects too much (some "open" type commands with a lot of variables will pick up the keyword -- for example, "students" -- so students.domain.com AND domain.com/students AND domain.com/program/students.html would all redirect, even though I only wanted the subdomain version, or the page version, to redirect, and not the others!).

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

Moving Site From Linux To Windows

Jun 29, 2008

I have a customer who would like me to move his site from a linux box to windows. As we are all linux I'm not sure of any major implications this would have.

He wants to move as he is starting some .NET dev and wants to keep it all on the same server.

The linux box has a forum/blog type application (customer written). It was done in PHP and using MySQL.

The windows server is a Windows 2003 server.

As far as I know I'll have to install the entire windows OS, install all SP and updates. I will install IIS, .NET.

The MySQL installation is pretty simple and the PHP will be run as a CGI under IIS.

I am thinking of installing an anti virus/trjoan scanner but as there will be no mail server there I'm guessing it's not necessary.

I'm pretty sure I will need a firewall as there is no iptables equivalent for windoes (is there??). Any suggestions on something cheap / fast / stable and good.

If someobody can see anything I missed here PLEASE let me as it will be most appreciated.

is the 4GB + problem still around with a windows server 32bit ? The box will have exactly 4GB of memory.

View 4 Replies View Related

Cpanel : Moving Site From Reseller To VPS

Mar 27, 2007

how do you move a site from a reseller account to a VPS if I do not know the site password. I believe the user changed the Cpanel password.

View 6 Replies View Related

.htaccess, Mobile Version Of Site

Jun 8, 2009

can i configure .htaccess to direct browsers to a different css file based upon their browser type?

That's the short question. The longer question is: how do I set up my .htaccess file to call a different css file based on mobile browsers?

All I want to do create a 2nd version of a css file so that my site's content, when viewed on a mobile browser, calls /mobi/style.css instead of /style.css.

I have the rewritecond statement for all the mobile browsers, and in fact I presently direct all mobile browser traffic to a designated static webpage, which you can see at tastyplacement . com which directs to tastyplacement . com/mobi.

But if I could simply call a different css file, I could have the pages load as they normally would but with a different css file and thus an entirely different look for the website (narrower columns, no header navigation, ie., a stripped down version of the site with the main text intact).

Can it be done?

View 4 Replies View Related

Htaccess Redirect Site Pages

Apr 25, 2009

Ii need to redirect domain.com/register.html , domain.com/search.php and login.html to domain.com/index.php

Do anyone know how to do this with .htaccess?

View 3 Replies View Related

Parked Domain, Subdomain, Addon Domain?

Oct 24, 2008

what are the differences?

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

Plesk 11.x / Linux :: Creating Site With Subdomain

Jun 20, 2014

I am planning to create site with sub domains like smth.domain.pl and there will be around 10 sub domains now my question is how to handle sub domain creation trough plesk or by htaccess ?

View 1 Replies View Related

Plesk 11.x / Windows :: All Possible Subdomain Will Go To Main Site?

Apr 7, 2014

I need to make it so that all possible subdomains will go to my main site

How do I do that?

View 4 Replies View Related

Moving Domain Name

Oct 9, 2008

i have moved my site (pages and data) from my VPS to dedicated.

NOW I want to move the domain from VPS to Dedi.

Both are running on directadmin. I want to quickly move domain so that new user registrations are on the new domain only. Last time when I did this, at some locations domain still resolved at old and I lost some data on old server.

what should i do? I think i need to:

1. update NS at the domain registerar.

2. update the ip address in the DNS administration of old server directadmin so that the ip address is of new server there.

View 4 Replies View Related

Replicating Internal Redirect Behaviour For Redirecting To External Site In Htaccess

May 19, 2009

I have the following RewriteRule directive in my htaccess file on my localhost:-

Code:
RewriteRule ^([a-z-]+)/?$ test.aspx/app.nav/params.class.com${meta:$1}/whatever${meta:$1}
The rewrite rule works perfectly, since the revised URL is still preserved when after it is executed; I presume this is since my old URL is relative, and it's performing an internal rewrite.

However, when I make my old URL absolute (adding an external address to it), whenever I execute my new URL, I'm redirected to the external sites URL (which includes the same URL parameters as my internal 'test.aspx' page), like below:-

Code:
RewriteRule ^([a-z-]+)/?$ http://www.example.com/test.aspx/app.nav/params.class.com${meta:$1}/whatever${meta:$1}
Purely for demo purposes, upon execution, I'd like my new URL to be preserved in the address bar whilst, I'm redirected to the external site.

Is this possible to do - something like forcing the behaviour of an internal rewrite?

EDIT: I've done some investigating and people with similar problems have suggested using the Passthrough handler - although I'm slightly unclear as to what this does exactly, I gave it a go (adding '[PT]') at the end of RewriteRule, but unfortunately this didn't make any difference.

Is mod_proxy a possible solution?

View 1 Replies View Related

Moving Domain Name Server (DNS) ...

Aug 26, 2008

I'm trying to move sites from one cPanel server to another. Presently, I am using the clustered DNS option in WHM to keep the two servers DNS in sync, which has allowed me to avoid messing with switching name servers for domains as I moved them. Now, I'm looking to turn off the original server, but that server is the one hosting the name servers that most of the domains use (ns1 and ns2.serverforest.com).

I'd like to move those name servers over to the new server, which I presume is as simple as re-registering them in the control panel over at my registrar. However, I presume I also need to bind IPs on the new server to the original DNS names. However, if I do that and the DNS cluster syncing occurs, won't that mess things up while I await the registrar making the changes? Do I need to turn off clustering before making the switch?

Is there a way to do this seamlessly?

Also, for testing purposes I created ns3 and ns4.serverforest.com on the new server. If I now want to move over ns1 and ns2, can I set them on the same two IPs that ns3 and ns4 "own" without any trouble?

View 7 Replies View Related

About My Website Moving And New Domain Name

Jul 27, 2008

I've purchased a forum, using a sub-domain name like bbs.mywebsite.com.

All the files will be moved to my new dedicated server.

I'd like to use a new domain name for it, like newname. com

but still to not lose current memebers, still we want to keep bbs.mywebsite.com working as before.

I have 5 IP availble and want to allocate one of them to the new domain name newname .com
================================================== ====
Now, question, what should I do, can some one give me instruction step by step please, to make 2 domains both bbs.mywebsite.com and newname. com working properly. don't want to use redirect.

Now what I can think of is, add newname. com to my account, and change DNS to point to my nameserver, then copy the whole forum under new website. I dont know if this way is correct. Then I don't know how to link the original forum address to the new space.

View 7 Replies View Related

Moving Domain Without Changing Tag

Feb 27, 2008

i've been given the glorious task of sorting out the company web site.

We have a dedicated server, and 2 domains.

One of the domains is the default domain for the dedicated server, and the other is on another tag with another company.

That company has then setup a 301 redirect to an url on the dedicated server.

Nasty!

What I am hoping to do, is add another web site in IIS for the second domain and then get the other company to change the DNS.

I would happily transfer the domain to the dedicated server's tag, but that takes time and it may also cause email downtime.

View 1 Replies View Related

Moving Domain To New Server - Imap?

Jan 30, 2009

We have a client who has a site currently hosted with some guys in germany. I cannot speak german, so am unable to chat to the support there, so thought I would ask here.

We are wanting to move their site to new hosts, as we are re-developing it for them, and their current setup does not suit our needs.

The only issue I am not too sure about is the following:

They rely heavily on their email (what company doesnt nowadays?), and they currently have IMAP acounts. They use thunderbird on a Mac for all their emails, so all their mail would presumably be on their machines.

No, if I moved their email accounts, would all the emails be deleted from their Thunderbird on their Macs? I know they wouldnt for POP, but I have only ever dealt with POP, nt IMAp.

If they will get deleted, what is the best way for me to handle this?

View 11 Replies View Related

Moving Domain To Home Server

Oct 15, 2007

I am moving my domain to my home server. I went to remove it from WHM and saw this option: Keep Dns Zone (needed if you have moved a domain between servers in the same dns trust relationship, and wish to remove the old domain).

I am running my own BIND server on my home pc.

View 2 Replies View Related

Moving Main Domain To Another Server

Nov 26, 2007

I have my main domain (domain.com) and it is where all my sites and customer sites are pointed to (ns1.domain.com and ns2.domain.com).

I just purchased a VPS and have made (domain.com) my main domain as I want it to be because of keeping the nameservers the same for my clients.

My vision is this, I will transfer all the sites from my old cPanel account to my new DirectAdmin account. I have setup a time to let my clients know not to update any content on their sites. At that time I will then download the sites from the cPanel account to the DA account. I will then move my main domain (domain.com) over as well and then change the name server registries at namecheap.

I understand some things can get lost in this switch, but ALL clients are aware of this and understand. They will still have access to the old server via the IP address to check for misdirected mail.

Is this the simplest way to get this done?

Is there a better way, with using the main domain?

View 1 Replies View Related

Cross Domain .htaccess

Jan 1, 2007

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

That's the wordpress .htaccess

What makes me wonder is if we delete RewriteCond %{REQUEST_FILENAME} !-f, it won't work.

As if there is a recursion. However, there can't be a recursion given the [L] thing right?

View 0 Replies View Related

Subdomain Or Domain For Ssl?

May 2, 2008

i wanted to create secure.mydomain.com . i can create this either as a separate domain or as a subdomain for mydomain.com.

which one is preferred and why?

View 1 Replies View Related

Domain/subdomain

Mar 14, 2007

Can I have a primary domain - www.sample.com - point to another primary domain - www.sample.asn.au - but then have the entry point for that domain be a subdomain - www.ccc.example.com?

If the primary domain is parked somewhere else, doesn't it mean that all the subdomains will be too? Or do I use a 301 on the primary domain to the .asn.au site? But does that then redirect all the subdomains too?

View 3 Replies View Related







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