Forum Moderators: phranque

Message Too Old, No Replies

Rewrite help needed

         

stev0

12:44 pm on Sep 29, 2010 (gmt 0)

10+ Year Member



I have a wordpress install and a code igniter install i am trying to combine

if somone enters a url like this i need it to be reditrected to the codigniter.php(i have renamed the index.php to codeIgniter.php)

The url

www.example.com/invite/jeff-turner

so the rewrite rul will redirect any url with invite/* to the codeIgniter.php page all other urls will perform as normal with wordpress

Im sorry if this seems like a simple one, but i have no idea where to start here.

Thanks

Steve

g1smd

3:03 pm on Sep 29, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



RewriteRule ^invite/ /codeIgniter.php [L]


Do you need to pass the backreference value as a parameter?

RewriteRule ^invite/(.*) /codeIgniter.php?param=$1 [L]


This is NOT a redirect. It's an internal rewrite. Make sure you fully understand the difference.

stev0

5:12 pm on Sep 29, 2010 (gmt 0)

10+ Year Member



Thank you very much, i will give that a try now