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

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -