Forum Moderators: phranque

Message Too Old, No Replies

Yet another simple rule, but newbie

         

alpacinofr

9:14 am on Aug 14, 2007 (gmt 0)

10+ Year Member



Hi

Sorry for posting this. It is clearly simple rewrite rule, but I am not successful with rule.

I have following htaccess file

RewriteEngine on
RewriteRule ^recipe/([0-9]+)/([a-zA-Z0-9?-]+) recipe.php?id=$1 [L]
Options -Indexes

I call every recipe.php file with only one IRL parameter like id www.example.com/recipe.php?id=#*$!XX

Anybody can check this rule against what i need. Is it correct, although it doesn't work.

Thank you in advance

jdMorgan

4:28 pm on Aug 15, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It isn't clear what you want the rule to do, so it is difficult to answer your question.

What is the purpose of this rule?
What kind of URL do you wish to publish on your pages for clients to request?
When that kind of URL is requested, where do you want to rewrite it to?

Jim