I put an .htaccess file in the directory where I am hosting my site. /var/www/html However it isnt being read.
I tried changing the AlowOverride in the httpd config file
<Directory /var/www/html>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
And my .htaccess works on my local server, however when I try it on my hosted server it doesnt read it at all.
Here is my .htaccess file for reference.
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php [NC,L]
RewriteRule ^([0-9]+)$ index.php?week=$1
RewriteRule ^([0-9]+)/$ index.php?week=$1