Forums

Blog address gives error pages (18 posts)

  1. freeproductsclub
    Member
    Posted 2 years ago #

    How do you change the blog address to end with a forward slash /, for the blog and a static front page, so you eliminate error pages, as it won't change from within the admin area?

  2. freeproductsclub
    Member
    Posted 2 years ago #

    Is there someone who can tell me this? Is it a universal overlooked flaw, which can only be eliminated by another blog software?

  3. whooami
    Member
    Posted 2 years ago #


  4. kmessinger
    Member
    Posted 2 years ago #

    What are you talking about? Post a URL - mind reading is difficult over the web.

  5. freeproductsclub
    Member
    Posted 2 years ago #

    A blog address like:
    http://www.yoursite.com/blog
    gets you an error page in both Firefox and Internet Explorer, whereas a blog address with an ending slash after "blog", is ok:
    http://www.yoursite.com/blog/
    Is there a way to rectify this obvious flaw in one of the files, as it is not possible from inside the admin panel, where wp declines or ignores any changes in this address under "General" in the dashboard?

  6. whooami
    Member
    Posted 2 years ago #

    A blog address like:
    http://www.yoursite.com/blog
    gets you an error page in both Firefox and Internet Explorer, whereas a blog address with an ending slash after "blog", is ok:
    http://www.yoursite.com/blog/

    thats NOT true in all cases.

  7. freeproductsclub
    Member
    Posted 2 years ago #

    It seems to be true if there is a directory or sub-directory in the link.

  8. kmessinger
    Member
    Posted 2 years ago #

    http://www.example.com and http://www.example.com/ are the same thing. The / is implied in the first.

    But with a URL like ‘http://example.org/directory/’ - many webservers will redirect ‘/directory’ to ‘/directory/’ and this will incur the cost of an extra HTTP request. However that’s entirely up to the web server or web application - if the correct URL is ‘/directory/’ then it could validly return a ‘404 Not Found’ for a request to ‘/directory’.

    I read it on the web so it must be true.

    If you post your real URL we can check for other errors that might be causing problems.

  9. freeproductsclub
    Member
    Posted 2 years ago #

    Please test the following two addresses to prove it to yourself:
    1. http://www.career-builders-club.com/blogging
    2. http://www.career-builders-club.com/blogging/
    What I am saying is this:
    Inside the admin panel in dashboard under general, wordpress gives the default address as in 1 above. As this address without the slash at the end returns a error page, how can it be changed to reflect the default as in 2?

  10. freeproductsclub
    Member
    Posted 2 years ago #

    When the entire web site consists only of the blog, it will reside in the upper level, in which case the default address will be ok like this:
    http://www.yoursitename.com
    Web browsers will handle such an address by putting the slash at the back in automatically and open the index page, on condition there is one.
    As soon as you put your blog in a directory the default address becomes a problem.
    You want a link in the side bar where visitors can click to go back to your static page, front page or introductory page, after visiting some of the posts or categories.
    Also you want your blog to open on the front page and not just any page.

  11. kmessinger
    Member
    Posted 2 years ago #

    WP asks for "WordPress address (URL)" so give it the correct URL. IT will take any address you put into that space.

    BTW, attemping to validate the unclosed directory results in this,
    "I got the following unexpected response when trying to retrieve <http://www.career-builders-club.com/blogging>:

    301 Moved Permanently

    More information about why this is happening may be available from warnings reported by the validator's HTTP (and other protocol) client library:

    Redirect loop detected (max_redirect = 7"

    I had expected a 404 error.

  12. freeproductsclub
    Member
    Posted 2 years ago #

    Not so! I don't know what version you are using, but all the versions I have used so far decline any changes in the default address referring to a directory in the admin panel. WordPress won't accept the forward slash at the end. So, I want to know if there is another place inside one of the files perhaps, where one can make a change.

  13. freeproductsclub
    Member
    Posted 2 years ago #

    Another problem is that when you click on a post in the sidebar, the side bar disappears on the opening page.

  14. ClaytonJames
    Member
    Posted 2 years ago #

    Response Codes:

    HTTP/1.1 301 Moved Permanently

    Could that page level redirect somehow be causing issues?

    <meta http-equiv="Refresh" content="0;url=http://www.career-builders-club.com/index.php>

    Here is an interesting conversation that may, or may not be relevant to your situation. Interesting none the less, considering the redirect loop and the trailing slash-no trailing slash issue. Just food for thought.

    http://www.webmasterworld.com/apache/3180711.htm

  15. ClaytonJames
    Member
    Posted 2 years ago #

    Another problem is that when you click on a post in the sidebar, the side bar disappears on the opening page.

    I think you may find that to be the "single" page post view behavior of the default Kubrick theme.

  16. kmessinger
    Member
    Posted 2 years ago #

    Not so! I don't know what version you are using, but all the versions I have used so far decline any changes in the default address referring to a directory in the admin panel. WordPress won't accept the forward slash at the end.

    Well, it just accepted it for me and that is exactly why it is there so one can make an entry. I changed one site from http://www.mysite.com to http://www.mysite.com/blog and it accepted it with no problem. WARNING: Do not do this unless you know how to go to the database and change the value back.

    BTW, I would think thousands of WP users have the URL, http://www.myblog.com/blog.

    Now, if you can't get it done in the dashboard you can go to your database, wp-options table and the first item is blog URL. You can change it there but be careful in your database. Don't save unless you are certain you have made no mistakes.

  17. kmessinger
    Member
    Posted 2 years ago #

    To get the sidebar to appear on the singe post, add
    <?php get_sidebar(); ?> just above the get footer entry at the bottom of single.php

  18. logh
    Member
    Posted 2 years ago #

    I got the same problem as "freeproductsclub". Unfortunately the tip with the database does not work either, i got my adress there with the slash at the and, but my Page URL still is without.

    http://homepage.univie.ac.at/harald.hoeller/php/logh/ vs
    http://homepage.univie.ac.at/harald.hoeller/php/logh

Topic Closed

This topic has been closed to new replies.

About this Topic