Forums

Running wordpress from blog.html (13 posts)

  1. pramodd
    Member
    Posted 3 years ago #

    I am using wp 2.6.1 on my site and have installed wp at
    http://www.mydomain.com/blog/

    I wish to run wordpress from the html file located at http://www.mydomain.com/blog.html

    The blog should be accessible at http://www.mydomain.com/blog.html
    Please advice.

  2. reflexionstudios
    Member
    Posted 3 years ago #

    I know this is backwards, but only because I can't think of a solution going the other way. Why not redirect blog.html to the /blog directory?

  3. pramodd
    Member
    Posted 3 years ago #

    No ... I need to run the blog from http://www.mydomain.com/blog.html while wp is installed in http://www.mydomain.com/blog/ folder

  4. If you are currently using /blog/ how do the post URLs look? Like /blog/?p=123 or /blog/2008/12/16/post-slug-here/ ?

    And if /blog.html could be made to work, what do you expect the post URLs to look like then? /blog.html?p=123 or /blog.html/2008/12/16/post-slug-here/ ...?

  5. pramodd
    Member
    Posted 3 years ago #

    Post URLs are of the form /blog/2008/12/16/post-slug-here.html

    I expect post URLs to look like /blog.html/2008/12/16/post-slug-here.html
    OR
    /blog/2008/12/16/post-slug-here.html

  6. iridiax
    Member
    Posted 3 years ago #

    No ... I need to run the blog from http://www.mydomain.com/blog.html while wp is installed in http://www.mydomain.com/blog/ folder

    Why? If it's to avoid broken links or lost search engine ranking, then a 301 redirect from mydomain.com/blog.html to mydomain.com/blog/ would take care of that.

  7. pramodd
    Member
    Posted 3 years ago #

    A redirect is not what is required. Does anybody know how to do this?

  8. reflexionstudios
    Member
    Posted 3 years ago #

    I don't see how you can possibly run WP from a single HTML file when all the required files to run WP are in the /blog/ directory. The WP file referencing system greatly depends on that fact that there is a common root folder.

    /blog.html/2008/12/16/post-slug-here.html

    The server will still read /blog.html/ as a directory, which will be empty. I imagine you would have to do something along the lines of /blog.html?year=2008&month=12&day=16, but why do that (assuming you could get it to work) when WP does that all of that for you?

    /blog/2008/12/16/post-slug-here.html

    This is correct because WP is in fact in your /blog/ directory.

  9. A redirect is not what is required. Does anybody know how to do this?

    Not really. As mentioned above by reflexionstudios, it would be technically incorrect. The url /blog.html could be a file that does a redirect but you don't want that. You could rename /blog/ to /blog.html/ but it looks like you don't want that either.

    Also unclear is what are you trying to accomplish and why.

    If you have old URLs that are in that format and you want to migrate them, then that is something we can help you with. That is not an unusual scenario and many of us have done this when migrating from a blog to WordPress (from MT for example). But it will use 301 redirects.

  10. pramodd
    Member
    Posted 3 years ago #

    One of my clients requires that the blog be run from http://www.mydomain.com/blog.html while wp is installed in http://www.mydomain.com/blog/ folder

  11. reflexionstudios
    Member
    Posted 3 years ago #

    I'm afraid you'll have to tell your client it can't be done, unless you build your own blogging system with all necessary files in the root and all output is sent to blog.html.

    I don't see anything wrong with having someone go to http://www.yourdomain.com/blog -- it's actually much easier to type, remember, more organized, and cleaner (and subsequent URLs will be equally as clean).

  12. I suppose you could use frames and have the blog called inside a frame in blog.html but ... Yick. Why?

  13. thegfs
    Member
    Posted 3 years ago #

    Maybe subdomain will work better. blog.example.com
    we are trying to get this done at guide

Topic Closed

This topic has been closed to new replies.

About this Topic