Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

nginx and fcgi but error with htaccess

Discussion in 'EasyApache' started by upsforum, Jul 25, 2014.

  1. upsforum

    upsforum Well-Known Member

    Joined:
    Jul 27, 2005
    Messages:
    470
    Likes Received:
    0
    Trophy Points:
    166
    I migrate to nginx and fcgi my vps, I tried and all web sites work fine, but I have a problem with sub directory of a single website, I think that the problem is .htaccess rules

    PHP:
    <IfModule mod_rewrite.c>
        
    SetEnv HTTP_MOD_REWRITE On
        RewriteEngine On
        RewriteBase 
    /temi
        Redirect 301 
    /temi/contacts.php http://www.maindomain.it/submitticket.php

        
    RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond 
    %{REQUEST_FILENAME} !-d
        RewriteCond 
    %{REQUEST_URI} !\.(gif|jpg|jpeg|png|ico|css|js|swf)$ [NC]
        
    RewriteRule ^(.*)$ index.php/$[PT,L]
    </
    IfModule>
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,302
    Likes Received:
    1,847
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    Could you elaborate on what the specific issue you are having with the subdirectory is? Does it not happen with the standard Apache installation?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice