php - Backwards compatible URLs in Laravel -
i've migrated old site onto laravel , support of old urls in new system. used have urls like:
old.site.com/page.php
but approach doesn't seem work. thoughts?
route::get('/page.php', 'homecontroller@index');
the problem web server catching request , trying send .php file, have deal your. have deal rewriters and/or remap. you'll, probably, have rewritings this:
rewriteengine on rewriterule ^/foo\.php$ /foo [pt]
here's documento this, if using apache 2 web server: http://httpd.apache.org/docs/current/rewrite/remapping.html.
Comments
Post a Comment