php - How do i setup a redirect for a subfolder using CodeIgniter -


i'm looking redirect mydomain.com/blog codeigniter blog controller when have folder in existence @ mydomain.com/blog. have read , think use of routes feature might me going. presume need new line in .htaccess file says unique exception , should load blog controller.

thanks help/suggestions.

is worth it? rename blog folder. find unlikely can have both @ same time, how browser know 1 serve?

you may able use htaccess...say:

rewritecond %{request_uri} "/blog/"

or

rewritecond %{request_filename} -d

but knowledge of isn't fantastic.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -