htaccess not working

for some reason the htaccess in my new website is ignored..

Thank you

3 Replies

For some reason, you're under the misunderstanding that you've provided any where near enough details for anyone to help.

Sorry :-)

virtual host:

 <virtualhost *:80=""># Admin email, Server Name (domain name), and any aliases
  AllowOverride All
  ServerAdmin me@mysite.com
  ServerName  www.mysite.com
  ServerAlias mysite.com

  # Index file and Document Root (where the public files are located)
  DirectoryIndex index.html index.php
  DocumentRoot /home/user/public/mysite.com/public

   <directory>Options FollowSymLinks
            AllowOverride All</directory> 

  # Log file locations
  LogLevel warn
  ErrorLog  /home/user/public/mysite.com/log/error.log
  CustomLog /home/user/public/mysite.com/log/access.log combined</virtualhost> 

when using this command: sudo a2dissite

I'm getting:

perl: warning: Setting locale failed.

perl: warning: Please check that your locale settings:

LANGUAGE = (unset),

LC_ALL = (unset),

LCPAPER = "heIL.UTF-8",

LCADDRESS = "heIL.UTF-8",

LCMONETARY = "heIL.UTF-8",

LCNUMERIC = "heIL.UTF-8",

LCTELEPHONE = "heIL.UTF-8",

LCIDENTIFICATION = "heIL.UTF-8",

LCMEASUREMENT = "heIL.UTF-8",

LCTIME = "heIL.UTF-8",

LCNAME = "heIL.UTF-8",

LANG = "en_US.UTF-8"

are supported and installed on your system.

perl: warning: Falling back to the standard locale ("C").

Thank you

Changed it to:

 <virtualhost *:80=""># Admin email, Server Name (domain name), and any aliases
  ServerAdmin me@mysite.com
  ServerName  www.mysite.com
  ServerAlias mysite.com

   <directory>Options FollowSymLinks
            AllowOverride None</directory> 

  # Index file and Document Root (where the public files are located)
  DirectoryIndex index.html index.php
  DocumentRoot /home/user/public/mysite.com/public

   <directory home="" user="" public="" mysite.com="">AllowOverride All</directory> 

  # Log file locations
  LogLevel warn
  ErrorLog  /home/user/public/mysite.com/log/error.log
  CustomLog /home/user/public/mysite.com/log/access.log combined</virtualhost> 

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct