Forum Moderators: phranque

Message Too Old, No Replies

RewriteRule exception help

I am dumb...this is probably a simple fix

         

adamcap

2:47 am on Feb 17, 2010 (gmt 0)

10+ Year Member



Hey everyone,

I currently have this RewriteRule implemented:

RewriteRule ^advertise/(.*)$ wp-content/plugins/oiopub-direct/$1 [L]

It works ok, however I do NOT want it to rewrite mysite.com/advertise/ (right now it's causing a blank page to show up at that URL)

All directories branching off /advertise/ I do want to be rewritten, which is working as I want.

I'm sure this is pretty simple to do...thanks soooo much in advance for any help. :)

Best,

Adam

jdMorgan

2:58 am on Feb 17, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Use the power...

RewriteRule ^advertise/[b](.+)[/b]$ wp-content/plugins/oiopub-direct/$1 [L]

... of regular expressions.

One single character makes the difference.

Jim

adamcap

3:02 am on Feb 17, 2010 (gmt 0)

10+ Year Member



You are THE MAN Jim.

Thanks so much for the help, really appreciate it.

-Adam