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!

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:
    11
    Trophy Points:
    168
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    RewriteEngine off

    in the .htaccess file in the subdomain's directory.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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:
    16,571
    Likes Received:
    439
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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:
    11
    Trophy Points:
    168
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    what does that have to do with the command
    RewriteEngine Off
    in .htaccess file?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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:
    11
    Trophy Points:
    168
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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
    
     
    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