Jump to content

Recommended Posts

Posted

Hi All

 

I am having a nightmare with mod rewrite rules. I have been looking all day for help. Tried this, tried that but nothing seems to work. I am sorry if this is in the wrong forum by the way ;)

 

Here is what I want:

 

I have the dynamic link, something like this:

list.php?m=Nokia-3120&l=Nokia&lp=1&id=19

 

I would like the url to be static for indexing purposes like this:

list.php/Nokia-3120/19

 

I hope some of you can help me as it is driving me crazy!!

 

Thanks in advance

Posted

Hi,

 

I'd try something like;

 

>RewriteRule ^list.php/(.*)/(.*)$ list.php?m=$1&l=Nokia&lp=1&id=$2

 

which will convert

list.php/Nokia-3120/19

into

list.php?m=Nokia-3120&l=Nokia&lp=1&id=19

 

I think ;)

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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...