Fraze
Fraze

Reputation: 948

mod_rewrite issues with RewriteRule

Can this rule be modified:

RewriteRule ^/it(.*)$ /information-technology$1 [R=301,NC,L,QSA]

to handle all scenarios below? (As-is above does not work for those marked ERROR)

--

--

--

Thank you for your help in advance!!

Upvotes: 1

Views: 14

Answers (1)

anubhava
anubhava

Reputation: 784898

You may use this rule:

RewriteRule ^/?it(/.*)?$ /information-technology$1 [R=301,NC,NE,L]
  • Make sure this is top most rule in your site root .htaccess
  • Make sure to test it in a new browser

Upvotes: 1

Related Questions