View unanswered posts | View active topics It is currently Fri Dec 01, 2023 3:35 am

Reply to topic  [ 2 posts ] 
 Help with what should be a simple mod rewrite 
Author Message
Junior Member

Joined: Tue Aug 04, 2009 7:49 pm
Posts: 1
Post Help with what should be a simple mod rewrite
I admit it, I'm a n00b. I've read three different tutorials, downloaded cheat sheets and tried to read the official documentation, but clearly, I'm just not smart enough. So help me please.

I'm working on a site that is migrating from ExpressionEngine to Wordpress, so its going to have the majority of its URLs changing. I want to redirect them instead of leaving them empty.

So basically I want pages like this:

[which will no longer exist post migration]

To redirect to pages like this:

(which will exist as a new template fter I figure this out!]

Note the underscores versus hyphens. I've tried this literally hundreds of times and gotten nowhere. Other mod rewrites I've implemented have worked, such as redirecting nonsense URLs to the home page. I've disabled all of them to get this one trick to work though, and I'm failing left and right.

Here's what I'm rolling with currently:

RewriteRule    ^/([A-Za-z0-9-_]+)/?$ index.php?/site/more/$1    [NC,L]

I'm sure I'm doing something wrong, and I'm hoping someone can point me in the right direction, or help me outright.

Thank you in advance.

Tue Aug 04, 2009 8:02 pm
Report this post
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
© Copyright 2003-2008 The ultimate PHP Editor and PHP IDE site.