The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    446
    Likes Received:
    0
    Trophy Points:
    16
    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>
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,724
    Likes Received:
    660
    Trophy Points:
    113
    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.
     
Loading...

Share This Page