Announcement

Collapse
No announcement yet.

Forbidden: You don't have permission to access /clients/uk on this server

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Forbidden: You don't have permission to access /clients/uk on this server

    Hello,
    I have this folder on my server and it is clients/uk and I already set up the config.php in the base url too. And I m adding also for the .htaccess file

    Code:
    RewriteEngine On
    RewriteCond %{REQUEST_URI} ^system.*
    RewriteCond $1 ^(index\.php|robots\.txt|favicon\.ico|images|js|assets|css)
    RewriteRule ^(.*)$ /clients/uk/index.php?/$1 [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /clients/uk/index.php?/$1 [L]
    and when i run it to the browser this is what it goes

    Code:
    Forbidden
    
    You don't have permission to access /clients/uk on this server.
    
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
    can anyone help me figured this out? Any help is appreciated.

  • #2
    Gabrel,
    How are you accessing this through a domain or Directory?

    Comment


    • #3
      Hi Gabrel,

      Code:
      RewriteEngine On
      RewriteBase /clients/uk
      RewriteCond %{REQUEST_URI} ^system.*
      RewriteCond $1 ^(index\.php|robots\.txt|favicon\.ico|images|js|assets|css)
      ....
      Added a RewriteBase rule to your .htaccess granting that mod_rewrite is enabled on your server.

      Note:
      If you access the directory like www.domain.com/clients/uk you must add a RewriteBase to the .htaccess
      But if a url/domain is pointed at the folder clients/uk there is no need for the RewriteBase.

      Comment

      Working...
      X