logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Need help with mod rewrites please
Author
Eros Welker



Joined: 05 Aug 2009
Posts: 1

PostPosted: Wed 05 Aug '09 8:05    Post subject: Need help with mod rewrites please Reply with quote

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:
http://www.domain.com/index.php?/site/more/stupid_long_article/
[which will no longer exist post migration]

To redirect to pages like this:
http://www.domain.com/stupid_long_article/
[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:

Code:

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.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Thu 13 Aug '09 20:14    Post subject: Reply with quote

Since no one can help you here you may ask at http://forum.modrewrite.com/
Back to top


Reply to topic   Topic: Need help with mod rewrites please View previous topic :: View next topic
Post new topic   Forum Index -> Apache