Home mod rewrite with fixed string between two dynamics
Reply: 0

mod rewrite with fixed string between two dynamics

user3660653 Published in 2017-11-09 09:55:56Z

I've got an URL like this:


and I want to use mod_rewrite to rewrite it like this:


as an example...

I already tried the following but itonly puts the first var (male) to the query string and skips the second one (example: jackets)

RewriteRule ^([a-zA-Z]+)/Apparel/^([a-zA-Z]+) filter.php?gender=$1&fid=1&sid=$2

I also tried the following syntax without success:

RewriteRule ^([a-zA-Z]+)/Apparel/([a-zA-Z]+) filter.php?gender=$1&fid=1&sid=$2

What have I done wrong? Isn't it possible to put an exact string between two dynamic string or did I just use a wrong syntax?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.297573 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO