1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Wordpress "Import HTML Pages" Plugin Help! (.Htaccess Problem)

Discussion in 'Blogging' started by ulord94, May 13, 2010.

  1. ulord94

    ulord94 Newbie

    Joined:
    May 7, 2010
    Messages:
    14
    Likes Received:
    1
    I Got this plugin called Import HTML Pages.
    On My Server I Have Wordpress Installed Here
    /mydomain/htdocs/(wordpress is here)/
    i created a directory called articles to store all my html articles which i want to import
    /mydomain/htdocs/articles/(all HTML HERE)

    then in the plugin it asks me "This should be a full path from the server root, on the same server where WordPress is running now."
    so i put /articles/
    when i ask it to import
    this is what i get
    .htaccess Redirects

    Im Not Much Of An Expert In Htaccess.
     
  2. zestoi

    zestoi Newbie

    Joined:
    Mar 9, 2010
    Messages:
    41
    Likes Received:
    3
    surely the full server path is /mydomain/htdocs/articles/ and not just /articles/
     
  3. ulord94

    ulord94 Newbie

    Joined:
    May 7, 2010
    Messages:
    14
    Likes Received:
    1
    I tried it with the full path....the same error came up
     
  4. zestoi

    zestoi Newbie

    Joined:
    Mar 9, 2010
    Messages:
    41
    Likes Received:
    3
    surely that text is only talking about how to redirect the old static html pages to the new wp pages? if you dont have the old static pages indexed then you wont need to worry about it.

    if you do then you could use something like this line to redirect one of them:

    RewriteRule ^articles/foobar.html$ /blog/this-is-the-new-page/ [L,R=301]

    or whatever the old and new page urls look like:

    much easier if you can work out the new wp url from the static html once so something like this:

    RewriteRule ^articles/(.*).html$ /blog/$1/ [L,R=301]

    would 301 any page like /articles/fish.html to /blog/fish/
     
  5. zestoi

    zestoi Newbie

    Joined:
    Mar 9, 2010
    Messages:
    41
    Likes Received:
    3
    another quick note....

    if you need to do anything more programatically to work out what the new url should be (like maybe using a lookup list or something) i tend to do an internal rewrite to a perl or php script like:

    RewriteRule ^articles/$ /redirect.php

    and then use that redirect.php script to work out the target url and then issue a 301 http header itself. also much cleaner/efficient than using some wp plugin - if you care about your server load etc.