Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • .htaccess in Cakephp

    • 0
    • 0
    • 0
    • 1
    • 0
    • 0
    • 0
    • 0
    • 348
    Comment on it

    Without .htaccess file in cakephp your application will not run.

    There are 3 different .htaccess files:

    /var/www/app/webroot/.htaccess

    <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteCond %{REQUEST&#95;FILENAME} !-d
        RewriteCond %{REQUEST&#95;FILENAME} !-f
        RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
    </IfModule>
    

    /var/www/app/.htaccess

    <IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteRule    ^$    webroot/    [L]
        RewriteRule    (.*) webroot/$1    [L]
    </IfModule>
    

    /var/www/.htaccess

    <IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteRule ^$ app/webroot/ [L]
        RewriteRule (.*) app/webroot/$1 [L]
    </IfModule>
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: