WordPress.org

Ready to get started?Download WordPress

Forums

Blank index page after changing blog URL (9 posts)

  1. obmin
    Member
    Posted 6 years ago #

    Hi all,

    So I installed WordPress (in a subdirectory) on my server some days ago and it all worked fine, until I changed the blog address in the admin panel.

    I changed this address to a domain (OnlineBijverdienen.net) that should point to the WordPress directory (bijverdienen.vankeer.eu).

    When I try to open the index page now, it just loads a blank page. However I can still access the admin panel and any other file in my WordPress subdirectory via this domain.

    I figured I should leave the WordPress URL untouched, because when I change that too, it doesn't load the CSS.

    I tried to reinstall everything, but that didn't work. I still get the blank page when I use the domain URL instead of the direct address for that WordPress directory. I'm using the latest version of WordPress and only one plugin (contact form).

    Please help. Many thanks in advance! :)

  2. richarduk
    Member
    Posted 6 years ago #

    This is your source code

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
    "http://www.w3.org/TR/html4/frameset.dtd">
    <html>
    <head>
    <title>OnlineBijverdienen.net</title>
    <META NAME="Keywords" CONTENT="onlinebijverdienen.net, onlinebijverdienen, bijverdienen, online, internet, e-commerce, ecommerce, ptr, thuiswerk, gratis, adverteren, affiliate, reclame, banners, geld, verdienen">
    <META NAME="Description" CONTENT="OnlineBijverdienen.net is dé Nederlandstalige weblog over online geld bijverdienen.">
    </head>
    	<frameset frameborder="0" framespacing="0" border="0" rows="100%,*">
    	    <frame name="MYTOPFRAME" src="http://bijverdienen.vankeer.eu" noresize>
    	    <noframes>
    	       	<body>
               <h1>OnlineBijverdienen.net</h1>
               OnlineBijverdienen.net is dé Nederlandstalige weblog over online geld bijverdienen.<br />
    	   onlinebijverdienen.net, onlinebijverdienen, bijverdienen, online, internet, e-commerce, ecommerce, ptr, thuiswerk, gratis, adverteren, affiliate, reclame, banners, geld, verdienen<br />
    	   <br />
    	   Click here to enter <a href="http://bijverdienen.vankeer.eu">http://bijverdienen.vankeer.eu</a>
               <hr>
    | Domain Name Registration and Domain Name Forwarding by <a href="http://www.mydomain.com">mydomain.com - Register your domain name</a>
            </body>
    	    </noframes>
    	</frameset>
    
    </html>

    I would say that there's some sort of framing issue, particularly as there are loads of errors on the page - for example, framesets out of the body

  3. obmin
    Member
    Posted 6 years ago #

    Yes that should be MyDomain.com's messy code and I don't think I change that, but I never had any problems with their URL forwarding before...

  4. obmin
    Member
    Posted 6 years ago #

    Ok, weird update:

    I now get a 404 error when I try to open the index.php (and yes, it does exist on the server), but not with all the other files in that directory.
    When I change the content of index.php to e.g. "<? echo 'test'; ?>", the 404 magically disappears... What's going on here?

  5. kmessinger
    Volunteer Moderator
    Posted 6 years ago #

    WordPress does not like to be redirected or forwarded.

  6. obmin
    Member
    Posted 6 years ago #

    No shit. -_-

    I think I've found out why I get the blank pages after changing the home address to that domain name...

    When I surf to the domain name (www.onlinebijverdienen.net), it loads the actual blog in a frame. I think WordPress checks the URL first and redirects the visitor to the "home" address (in this case the domain name) if it doesn't matches it, before loading the actual page.
    So if my little theory here is correct, WordPress should cause an infinite loop in my case, because WordPress redirects to http://www.onlinebijverdienen.net and that domain redirects to WordPress. :s

    So obviously I don't want WordPress to redirect the visitor to the home address when the page loads. (I just wanted to change all the links to my domain name.)

    Does anyone know where I should change that in the code?

  7. kmessinger
    Volunteer Moderator
    Posted 6 years ago #

    As I said before, WordPress does not like redirects. If you insist on this, WP will never work exactly like intended - no shit.

    But keep trying - joisting at windmills is so much fun.

  8. bob.j
    Member
    Posted 6 years ago #

    We are experiencing the same problem. I was asked by a friend to help on his site but after we made some changes we noticed that there was basically nothing in the source code for the search engines to find. The site is Catch A Lot Charter and if you note the source code is the same as that in the post above. It is also not accepting the blog through this crazy redirect thing.
    We do not host this site and have nothing to do with those that do, as stated earlier, we were just trying to assist a friend in need.

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
    "http://www.w3.org/TR/html4/frameset.dtd">
    <html>
    <head>
    <title></title>
    <META NAME="Keywords" CONTENT="">
    <META NAME="Description" CONTENT="">
    </head>
    <frameset frameborder="0" framespacing="0" border="0" rows="100%,*">
    <frame name="MYTOPFRAME" src="http://www.CATCHALOTCHARTERS.COM" noresize>
    <noframes>
    <body>
    <h1>Welcome to CATCHALOTCHARTER.COM</h1>

    Click here to enter http://www.CATCHALOTCHARTERS.COM
    <hr>
    | Domain Name Registration and Domain Name Forwarding by mydomain.com - Register your domain name
    </body>
    </noframes>
    </frameset>
    </html>

    Can anyone direct me as to how to break the frames?
    Thanks
    Bob.J

  9. CallMeAndy
    Member
    Posted 5 years ago #

    I am getting a similar problem.

    I have done a new install today to a local development machine with XP running Apache. I get just a directory listing if using the index.php in wordpress root, admin page is OK. So I reinstall after moving the installation and clearing database tables in between, just in case data relating to wordpress infrastructure. Still the same.

    The wordpress directory is several steps down from the documentroot. I am using the default installed index.php file. The core files are in the same original location.

    Anyone have anything on this problem it would be appreciated.

Topic Closed

This topic has been closed to new replies.

About this Topic