.htaccess - CakePHP without URL rewriting: redirect / to index.php -


I am using a KPHP framework on a shared hosting and do not turn on URL rewriting can do. Everything is working fine when I open /tc/index.php/Controller/Action in the folder named / tc .

However, I would like to make it a little easier for my users so that they do not do this, they should open /tc/index.php , but only / TC (which is then the Should be redirected to /tc/index.php ).

How to .htaccess ?

Thank you!

Clarifeteen I want a request at / tc / redirect at /tc/index.php

Solution

A simple for me

  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

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -