INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Developing Wordpress site behind holding site issues

Developing Wordpress site behind holding site issues

(OP)
I'm currently developing a Wordpress site behind a holding site, so it's on the same domain. I've had porting issues with WP before, so I wanted to develop where it would eventually sit. The holding site's index page is a .html, so there'll be no clash. The only problem is that when I try to type in index.php it aliases back to index.html. Is there any way to override this?

Site URL: http://tkukitchens.co.uk/

RE: Developing Wordpress site behind holding site issues

sounds like an apache config issue (if you are using apache). see below - your webserver is outputting a moved permanently return code and redirecting to the root of the site (which then defaults to index.html one assumes).

check out your htaccess files for any redirects.

CODE

* About to connect() to tkukitchens.co.uk port 80 (#0)
*   Trying 5.77.45.195...
* connected
* Connected to tkukitchens.co.uk (5.77.45.195) port 80 (#0)
> GET /index.php HTTP/1.1
> User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8y zlib/1.2.5
> Host: tkukitchens.co.uk
> Accept: */*
> 
< HTTP/1.1 301 Moved Permanently
< Date: Wed, 09 Oct 2013 10:51:34 GMT
< Server: WebServerX
< X-Powered-By: PHP/5.3.10
< X-Pingback: http://tkukitchens.co.uk/xmlrpc.php
< Location: http://tkukitchens.co.uk/
< Content-Length: 0
< Content-Type: text/html; charset=UTF-8
< 
* Connection #0 to host tkukitchens.co.uk left intact
* Closing connection #0 

RE: Developing Wordpress site behind holding site issues

(OP)
Thanks JPadie. There isn't a .htaccess file. I found this while I was trying to figure out how to get around this issue, but it seems to point to one page rather than the holding site:

order deny,allow
deny from all
allow from 123.123.123.123

ErrorDocument 403 /page.html

<Files page.html>
allow from all
</Files>

I don't really understand the ins and outs of it. Is there some way of listing valid (publicly viewable) pages instead of just one page?

RE: Developing Wordpress site behind holding site issues

that's an error document directive for forbidden access. it would return a 403 error if triggered

something in your apache config is sending a 301 redirect. if it is not .htaccess then you need to check your site-specific apache configs and the global configs. feel free to post them.

RE: Developing Wordpress site behind holding site issues

(OP)
I'd love to post them...if I could find them! I've had a look around the Internet and can't figure it out. Sorry, but I'm a little out of my depth here. How do I access the config files you speak of?

RE: Developing Wordpress site behind holding site issues

what OS are you using? what webserver? if you're using linux, what flavour of linux?

personally, I'd develop on a different hostname and then migrate. it's straightforward to migrate hosts with wordpress.

RE: Developing Wordpress site behind holding site issues

(OP)
This is the server configuration: CENTOS 6.4 x86_64 xenpv – server
WHM 11.38.2 (build 7)

I've had bad experiences with Wordpress migrations with image paths being lost, etc. I'd rather not risk that happening again.

RE: Developing Wordpress site behind holding site issues

i am not familiar enough with centos to be sure but I think that the apache layout has the core httpd.conf at /etc/httpd/conf/httpd.conf

probably there will also be virtual host specific configs at a sites-enabled directory close to that. perhaps under /etc/httpd/sites-enabled

but anyway - there really is no issue in migrating wordpress installations across domains. even if the automated tools don't work there is always the export-import method or the method that addresses the database directly. the latter is a bit scarier for those unused to getting their hands proverbially dirty, but is the quickest. at the end of the day wordpress is just php and a database, making use of some fairly trivial presentation html, css and javascript. there's nothing magic there and anything that goes wrong (short of actually deleting the files) can be fixed in probably less time that it took me to write this post.

RE: Developing Wordpress site behind holding site issues

(OP)
Still can't find it I'm afraid. The etc folder holds nothing more than the files I can find in my ftp client. I'd already looked there, as all the advice on the web seems to point to it. Unless I'm being really dumb (and that's not out of the question here) it's somewhere else, or I'm looking via the wrong viewing medium - file manager in CPanel. Some other options I've seen involve cprompt, but I really don't know where to start with that either.

RE: Developing Wordpress site behind holding site issues

don't use ftp. it's useless for administering a server. ssh is your friend.

cPanel does sometimes impose its own way of doing things - which is why in all the years i've been mucking around with technology I've never advised someone to use it. And the one time I inherited a server with a cPanel install, I got rid of it within a month of headbanging. nowadays, when I really need a graphical UI for admin, I use the open source web min - which does things with the server rather than inspite of it.

perhaps the best next step is to talk to the bods on a cPanel support forum?

or ... trust me when I say that a domain change will be fine!

one other option is to change the DNS of your real domain to somewhere else (for example set up a temporary VPS on digital ocean for $5 a month and point the DNS here - set it to a very low TTL first). then on your test machine, add a hosts record to point the final domain name to the test server's IP address; this will override the public DNS setting. that way noone other than you will be able to use the wp install until you fix the public DNS.

RE: Developing Wordpress site behind holding site issues

On Centos 6.x, httpd.conf should be located in /etc/httpd/conf/ and I have to agree with WebMin being better than cPanel (please don't get me started on Plesk and it's, .... let's just say 'shortcomings').

To migrate a WP install is a little bit more complicated than it really needs to be, because once you have edited the paths and the database details in wp-config you also need to edit the 'siteurl' value in the 'options' table to reflect the new hostname. But once you know about that bit, you can zip or tarball the files, export the tables then reverse the process on the new server and database.

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum

RE: Developing Wordpress site behind holding site issues

(OP)
Much as Plesk is disliked, at least it makes this job easy enough to do. I know where I am on a windows server. Thanks for your help, I'm sure I'll manage something.

RE: Developing Wordpress site behind holding site issues

Don't get me wrong, Plesk is great on a Windows box, it's just pretty damned pathetic on Linux.

To see .htaccess on cPanel's file manager you have to check the box "[ ] Show Hidden files" as you start FileManager, Worpress will have written a default .htaccess directives that sets a canonical redirect to the site root "/" if index.php is in the request. And index.html must be the first entry in the IndexFiles entry in httpd.conf.

To let you do what you want to do and keep the "holding" page, you should setup a temporary subdomain for your WP installation, BUT put the subdomain root in the account root directory(home/~useraccount) NOT in /public_html (the default) that way any root .htaccess in public_html CANNOT affect or the WordPress .htaccess.

It is easy enough to migrate from a sub domain to a root domain and keep everything intact and working with no fuss at all (on my fourth one this year :) ).



Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum

RE: Developing Wordpress site behind holding site issues

on linux, there is really no substitute for ssh

also, in this case I think Ralphonzo has ruled out an .htaccess file (as per his earlier post). however, I'm still a bit flummoxed as to why the server is redirecting if there is no .htaccess... (or equivalent)

RE: Developing Wordpress site behind holding site issues

(OP)
Ah look! I don't know if it's redirecting or simply defaulting. All I know is that I can't see the php file. I'm going to create another account on CPanel and develop there under IP/~xxx temp status, then up it to full status afterwards. Thanks all of you for your help.

RE: Developing Wordpress site behind holding site issues

Quote (jpadie)

also, in this case I think Ralphonzo has ruled out an .htaccess file (as per his earlier post). however, I'm still a bit flummoxed as to why the server is redirecting if there is no .htaccess... (or equivalent)

Trouble we don't know how the domains are organised in the directory structure, so it could be as with a default cPanel setup, that "addon domains" are created in the users "public_html" directory so a .htaccess file higher in the structure could be the culprit.

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close