• I’ve just moved my blog from http://www.populationstatistic.com/wordpress</A&gt; to http://www.populationstatistic.com/&#8221;. I’m having trouble getting my permalinks to follow suit; they seem to retain the “.com/wordpress/archive….” structure.
    My .htaccess file, which I generated on the Options–>Permalinks page, is:
    RewriteEngine On
    RewriteBase /
    RewriteRule ^archives/category/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wordpress/wp-feed.php?category_name=$1&feed=$2 [QSA]
    RewriteRule ^archives/category/?(.*) /index.php?category_name=$1 [QSA]
    RewriteRule ^archives/author/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wordpress/wp-feed.php?author_name=$1&feed=$2 [QSA]
    RewriteRule ^archives/author/?(.*) /index.php?author_name=$1 [QSA]
    RewriteRule ^archives/([0-9]{4})?/?([0-9]{1,2})?/?([0-9]{1,2})?/?([_0-9a-z-]+)?([0-9]+)?/?$ /index.php?year=$1&monthnum=$2&day=$3&name=$4&page=$5 [QSA]
    RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([_0-9a-z-]+)?/(feed|rdf|rss|rss2|atom)/?$ /wordpress/wp-feed.php?year=$1&monthnum=$2&day=$3&name=$4&feed=$5 [QSA]
    RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([_0-9a-z-]+)?/trackback/?$ /wordpress/wp-trackback.php?year=$1&monthnum=$2&day=$3&name=$4 [QSA]
    RewriteRule ^feed/?([_0-9a-z-]+)?/?$ /wordpress/wp-feed.php?feed=$1 [QSA]
    RewriteRule ^comments/feed/?([_0-9a-z-]+)?/?$ /wordpress/wp-feed.php?feed=$1&withcomments=1 [QSA]
    What am I doing wrong? I’d like to have everything permalinked as “.com/archive/year/month/date/posttitle”.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter criticali

    (@criticali)

    Anybody? I’m at my wit’s end. Any help will be enormously appreciated.

    Thread Starter criticali

    (@criticali)

    In lieu of an answer to the above, let me reframe the question, to see if I can get an idea of whether I’m on the right track or not:
    When I moved my blog default from http://www.populationstatistic.com/wordpress to http://www.populationstatistic.com/, I assumed the permalinks (including for trackbacks and categories, etc) would also move from the /wordpress/ directory to the root, thus streamlining them (from “.com/wordpress/archive/year/month….” to “.com/archive/year/month”).
    However, from digging around, I’m finding that blog content is getting archived into permalinks, but still under the /wordpress/ directory (ex: here). So the permalinks are being generated.
    The problem is that the WP is outputting the archive links as coming out of the root, and they’re broken. Only the popup comments are generating correctly under the /wordpress/ directory.
    So am I wasting my time trying to get the permalinks to work under the root? Does the “Blog Name” switch work only for the index page, and isn’t intended to affect the rest of the site structure?

    I haven’t done what you’re doing — moving after generating permalinks, but have you generated new rewrite rules and updated .htaccess at all?

    Thread Starter criticali

    (@criticali)

    Yes I have; the .htaccess code above is the result of generating new rewrite rules for the permalinks.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘from WP directory to root’ is closed to new replies.