WordPress.org

Ready to get started?Download WordPress

Forums

wordpress page 404's (5 posts)

  1. teesea
    Member
    Posted 7 years ago #

    Hi

    I've installed word press on a site which is using isapi, the isapi is working ok, but when putting word press on the site it had difficulty with the structure, for example the wordpress blog is in htdocs/blog/ but the sites domain name resolves to htdocs/blog, so if I were to type in http://www.myblog.co.uk then it would resolve to the index.php file in the blog directory.

    WordPress incorrectly thought that the site structure started in htdocs and so I could not log into admin. I changed the fields siteurl and home in wp_options from http://www.myblog.co.uk/blog/ to http://www.myblog.co.uk and this seemed to solve the problem but when changing the general options in the admin it redirects the post to http://www.myblog.co.uk/blog/wp-admin/options-general.php?updated=true instead of http://www.myblog.co.uk/wp-admin/options-general.php?updated=true also when turning on permalinks i get 404 errors when clicking on links on the blog, but when i got back to the default the links work ok.

    Any suggestions?

    Cheers

    Tony

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    If you have it setup with the wrong siteurl or homeurl, then you will need to change those and yes, the redirect will not work immediately afterward. You'll have to go to your blog admin page again with the correct URL.

    Also, prettified permalinks require Apache or a webserver that can process .htaccess files correctly. IIS/ISAPI does not do this.

    Uninstall IIS and use Apache instead. Apache is the standard, IIS is garbage.

  3. teesea
    Member
    Posted 7 years ago #

    The problem with the options page seems to be due to using $_SERVER['REQUEST_URI'] (although I could be wrong as php is not a language I am familiar with) so the changes to home and siteurl fields make no difference to this. Is there any way of changing this without manually going through the code and altering all uses of this?

    I can not change to apache as I need to use IIS for my other sites which use asp.net.

    I'm not familiar with the way word press works, does it really matter what web server your on? Does word press not just process the url which is passed to it, so if it is passed “2006/12/07/a-article-name/” does it not just receive the whole url, and parse it to get the date of the article and the name and then look this up in the database?, if not how does the web server that is serving the url effect the permalinks?

    Cheers

    Tony

  4. moshu
    Member
    Posted 7 years ago #

    If your WP install is in a folder named "blog" - the site_url can NOT be anything else but pointing toward the real, physical location of the installation! You cannot change those URIs to "fantasy" values.

    WP might work with IIS but according to the number of posts around here about the crappy functionality of that server... it is better to avoid it.

  5. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    WordPress will process the URI passed to it. However if you're using IIS, you have no way to pass the URI to it. That's what the .htaccess does in Apache, it redirects all calls to the index.php for processing. In IIS, you're just calling a non-existent page.

Topic Closed

This topic has been closed to new replies.

About this Topic