php - CakePHP Support Legacy URL -


i have legacy url absolutely have support, in format:

http://domain.com/page.php?hash=crazymd5hashhere 

the new version of site being done in cakephp 2.4, want redirect actual controller action , pass hashed parameter. what's best way of accomplishing in cakephp?

i use .htaccess file

rewritecond %{request_uri} ^/page.php$ rewriterule ^(.*)$ /controller_name/ [qsa,l,r=301] 

Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -