Hi guys,

I have this weird .htaccess rule that is used for a dropdown search engine

RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+) index.php?bla1=$1&bla2=$2... and so on [L]

If I want to maintain the above rule, it is allright.
The problem is that I want to creat a new rule with 3 variables, but the above rule is overwriting everything and it does not let me, what should I do?
If I rewrite the above rule, I will loose some important SEO ranking points.

Thanks in advance,
Szabi Zsoldos

Recommended Answers

The only way I can think is...

RewriteRule ^search/([^/]*)/([^/]*)/([^/]*)/$ /?search=1&param1=$1&param2=$2&param3=$3 [L]

This forces the 'search' parameter. It does insist on 3 search parameters though - will not work on just 2 nor with 4

Example:

Jump to Post

All 2 Replies

Hello, this is what I should do, i know, I will loose some SEO ranking because of this :(

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.