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!

htaccess doesn't work

Discussion in 'General Discussion' started by kiv44, Jul 7, 2015.

  1. kiv44

    kiv44 Registered

    Joined:
    Jul 7, 2015
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Russia
    cPanel Access Level:
    Root Administrator
    Hello,


    I've got a problem with my users in cpanel

    .htaccess doesn't work

    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^xxxxxxssian\.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.xxxxxxssian\.com$
    RewriteRule ^/?$ "http\:\/\/site\.com\/" [R=301,L]

    rights on .htaccess are correct

    such problem with any user on the server
    it seems that rewrite doestn't work at all
    but if I put this into httpd.conf <Directory></Directory> then it works good.

    what problem can present on the server ?

    I understand that /dev/hands. but where are they ?

    even if there's 1 line in my .htaccess
    DenyFrom All

    it doesn't work.
     
    #1 kiv44, Jul 7, 2015
    Last edited by a moderator: Jul 7, 2015
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

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

    Do you notice any error messages in /usr/local/apache/logs/error_log when implementing these custom rules in your .htaccess files?

    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