Brian W Posted February 28, 2009 Share Posted February 28, 2009 Hi, trying to do some rules for the very first time and having difficulties. I wanted to change /quotes/Author/John to quotes.php?Author=John. That wasn't that hard, but I want now to expand on that: /quotes/var1/val1/var2/val2/var3/val3/and so/on this is what I tried RewriteRule ^/(Author|bg|owner)/(.*)/$ $1=$2& [N] Author, bg, and owner are just three possible fields so far, their will be more. I can't find example of using the [N] flag, so I don't know how I'm really supposed to get it to work. Currently my .htaccess looks like this AddType x-mapp-php5 .php Options -MultiViews RewriteEngine on # mod_rewrite rules RewriteRule ^quotes/$ http://www.signature-block.com/quotes.php? RewriteRule ^/(Author|bg|owner)/(.*)/$ $1=$2& [N] I think it is my shared server, but it acts like I'm using the [R] flag on everything. The effect is http://www.signature-block.com/quotes/ takes me to http://www.signature-block.com/quotes.php but http://www.signature-block.com/quotes/Author/John/ doesn't work. It tells me it can't find the page "quotes/Author/John/" Any input appreciated, thank you. Quote Link to comment https://forums.phpfreaks.com/topic/147344-help-writting-this-one/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.