.htaccess - CakePHP without URL rewriting: redirect / to index.php -
I am using a KPHP framework on a shared hosting and do not turn on However, I would like to make it a little easier for my users so that they do not do this, they should open How to Thank you! Clarifeteen I want a request at / tc / redirect at /tc/index.php A simple for me URL rewriting can do. Everything is working fine when I open
/tc/index.php/Controller/Action in the folder named
/ tc .
/tc/index.php , but only / TC (which is then the
Should be redirected to /tc/index.php ).
.htaccess ?
Solution
RewriteEngine On RewriteRule ^ $ index.php / $ 1 [L, QSA] < P> Cake handles PHP comfortably because all links point to /tc/index.php/Controller.// Thank you for your help!
Try using the following code in .htaccess
& lt; IfModule mod_rewrite.c & gt; Rewrite code% {REQUEST_FILENAME} on rewriting! -f Rewrite Convert% {REQUEST_FILENAME}! -d RectiteAril. ^ (. *) $ Index.php / $ 1 [L] Index IGOROUGH * & lt; / IfModule & gt;
Comments
Post a Comment