.htaccess - HTAccess 301 Redirect Issue with Coldfusion URLs -


our web team rebuilt coldfusion site , setting redirects.

the first redirect of main inventory works fine when try redirect each make in second 1 redirects http://domain.com/inventory/pre-owned.php/make/carmake/

basically first redirect overriding second , replacing part of url.

i think may issue file index.cfm being cutoff point.

redirect 301 /folder/index.cfm http://domain.com/inventory/pre-owned.php redirect 301 /folder/index.cfm/make/carmake/ http://domain.com/inventory/pre-owned.php?sort=&make=make&model=&year= 

is there way give 1 redirect priority on or solve problem?

thanks!

edit: have sworn answer below worked yesterday, it's not.

strange thing is, have 2 lines this:

redirect 301 /new/index.cfm/page/testdrive/ http://domain.com/info/schedule-test-drive.php redirect 301 /new/index.cfm http://domain.com/inventory/new.php 

and these work perfectly.

just rearrange rules :

redirect 301 /folder/index.cfm/make/carmake/ /inventory/pre-owned.php?sort=&make=make&model=&year=  redirect 301 /folder/index.cfm /inventory/pre-owned.php 

Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -