ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Migrating from TXP to EE, wanting to rewrite old URLs

October 18, 2008 7:06pm

Subscribe [2]
  • #1 / Oct 18, 2008 7:06pm

    nathanpitman

    531 posts

    Ok so I’ve been working on the migration of my site from TXP to EE, so far all is good, I’m pretty much done from a technical standpoint but the last step is to make sure that I don’t break the internets so I need to re-route all the inbound linky goodness to the new site.

    Textpattern has URLs in the format:

    /journal/560/this-is-my-entry-title

    I’d like to use the same format in EE so I have switched url title separators to be dash rather than underscore but entry numbers will not tally since the import process I have used does not maintain entry id numbers.

    So… I’m looking to use the url_title to identify the relevant entry. The aspect I’m stuck with is the actual rewriting using mod_rewrite, at present I have the following in my htaccess but it ain’t doing nought:

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php/$1
    RewriteRule ^journal/([0-9]+)/(.*)$ /site/$2 [L]

    Any pointers…?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases