jd,
If you got lost, it’s because I attacked my reply several times so I was very disjoint. My apologies.
- All sites will be in their own unique cPanel account on our VPS (which acts like a full server with root access). I’m pretty sure each cPanel account is pretty self-contained and separate from other cPanel accounts and the root (apart from any general server settings at the root).
[indent][COLOR=“#0000FF”]They can only have their account on your VPS IF you have their domains pointed to your server.
Ralph’s suggestion is good BUT I’d use the domain name pointers and not a redirection at the old host as you cannot have one domain on two servers (so you’d have to use another domain name on your server which is not what you want to do).[/COLOR][/indent]
- All new sites are developed on their cPanel account where they will end up, but using a temporary domain so we can access things as we test. All indexing is disabled when in development. Domain is switched on cPanel account when time to go live (which requires some database edits) at which time indexing is enabled.
[indent][COLOR=“#0000FF”]Ah, I should have read ahead, eh? It’s silly to register temporary domains, though, just for testing (unless they’re on your localhost as a test server - I didn’t get that impression, though). Even using YOUR main (or a test domain), you’d have to put these client domains in subdomains which would force modifications when you “go live” with the WP sites.
BTW, I use the same technique Ralph uses, i.e., changing the DirectoryIndex index.html index.php while in development (index.html would be a “work in progress” type of page allowing you to link directly to index.php to test the WP installation) then back to DirectoryIndex index.php index.html to “go live.”[/COLOR][/indent]
-
All sites are pretty straight forward WordPress installs, with no subdomains or ‘actual’ subdirectories per se. My mention of subdirectories was more referring to how the URLs ‘appear’ when SEF URLs are generated by WP.
-
All sites will be completely new and fresh. Any shared content will just be due to the client writing similar content to what they may have had prior. But it probably wouldn’t be exact, and most/all directory structure will probably be a bit different as well.
Ergo, no 301’s required.
- My question is about sites that will be using a new domain for their new site (they don’t like old one anymore). We understand how to handle using the same domain.
Develop new domains as above (DirectoryIndex).
-
The first chunk of code above for the redirects is how we have to do it for a WordPress install when we are redirecting any indexed page URLs from an old site to appropriate pages on new site when using SAME domain name.
-
The second chunk of code is what cPanel writes to the .htaccess file when you park a domain and redirect it to the root domain.
Using WHICH .htaccess code? What you showed above wouldn’t do a thing (except preserve serving existing files). If you’re just changing .html files to extensionless files (or .php scripts) which are to be handled by WP, then strip the .html extension and they’ll get redirected to the index.php handler (where {THE_REQUEST} will be parsed for the requested content). Quite simple.
Hope this clarifies things a bit. Didn’t think it would be so complex. I would imagine people do a ‘refresh’ occasionally when creating a new website, including a ‘better’ domain if available.
I think it was the lack of specificity the first time. Right now, it seems to be pretty simple (like Ralph first said - he probably interpreted your original post correctly).
Ralph,
No, the comment above about domains applies. What you’re describing is a test domain using, well, a subdomain of jd’s test domain and that would be awkward to install, run and then update when the testing is completed. However, you were spot on with the DirectoryIndex solution you offered! :tup:
The beauty of using the registrar’s pointers is that jd’s clients never have to provide the logins to their hosting accounts, just the registrars.
Regards,
DK