Jump to content

Help writting this one


Brian W

Recommended Posts

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.