Haris Haris - 1 year ago 158
Apache Configuration Question

Redirect URL with mod rewrite

I want to redirect this type of link:


to this type:


For every cat2 there will be one cat1 that i will insert on rewrite rules.e.g for:


i need


Answer Source

You can use this rule in your site root .htaccess:

RewriteEngine On

RewriteRule ^(katigories)/(aggeioxeiroyrgoi), /$1/ygeia/$2? [L,NC,NE,R=301]

# rest of your rewrite rules go below
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download