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.

Turn Off Mod_rewrite in sub folder

Discussion in 'General Discussion' started by MR-GEORGIA, Feb 4, 2013.

  1. MR-GEORGIA

    MR-GEORGIA Active Member

    Joined:
    Feb 3, 2013
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hi

    Just a quick question. How can I turn off the mod_rewrite module just for one directory on the web server.

    e.g.
    I want mod_rewrite on /home/thisuser/public_html/ so that it allows sites without trailing slash and stuff.

    But I do not want mod_rewrite on /home/thisuser/public_html/subdir/

    I need the exact syntax I should add to the htaccess file, and where should the htaccess sit, in the sub director or in the root?

    Also, do I need AllowOverride? If so, how do I turn on?

    Thanks!
     
  2. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    RewriteEngine off

    in the .htaccess file in the subdomain's directory.
     
  3. MR-GEORGIA

    MR-GEORGIA Active Member

    Joined:
    Feb 3, 2013
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    This is not a standard. I have a hosting service. And I want my client to receive 100% of standard services. Help me please
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,448
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  5. MR-GEORGIA

    MR-GEORGIA Active Member

    Joined:
    Feb 3, 2013
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    I want to be independent subdomain. From the main domain.
     
  6. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    what does that have to do with the command
    RewriteEngine Off
    in .htaccess file?
     
  7. MR-GEORGIA

    MR-GEORGIA Active Member

    Joined:
    Feb 3, 2013
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    All subdomain, can not be created. Htaccess file. There is no other way that is not written to be independent of the subdomain?
     
  8. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    If RewriteEngine is On in public_html, it is On in all subdirectories of public_html, unless you turn it Off.
     
  9. MR-GEORGIA

    MR-GEORGIA Active Member

    Joined:
    Feb 3, 2013
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    please cheek /http://2.aieti.org/ . index.php upload the server. but not read . If the written /http://2.aieti.org/index.php Only then you will find a file

    - - - Updated - - -

    /http://2.aieti.org/index.php Only then you will find a file
     
  10. Greenhost

    Greenhost Well-Known Member

    Joined:
    Jan 22, 2013
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    First make .htaccess fore the directory then in the .htaccess file put:
    Code:
    RewriteEngine off
    
     
Loading...

Share This Page