0

I would like to create a unique rule to rewrite my URLs
It would increment the variable number for every "/" encountered.

e.g.

domain.com/alpha/bravo/charlie/ -> index.php?1=alpha&2=bravo&3=charlie  
domain.com/alpha/bravo/charlie -> index.php?1=alpha&2=bravo&3=charlie
domain.com/alpha/ -> index.php?1=alpha 
domain.com/alpha -> index.php?1=alpha  
Or eventually
domain.com/alpha/ -> index.php?1=alpha&2=&3=

Thanks for your help

JeanneD4RK
  • 323
  • 1
  • 5
  • 19

1 Answers1

0

Why not just use a general rewrite like most open source software use and then manipulate it within PHP? See this thread

Community
  • 1
  • 1
GManz
  • 1,548
  • 2
  • 21
  • 42