Hello,
I have moved my site from a shared host to a VPS. I get 404 errors every
time I click a link on the Index page, making the site inoperable. I
fear this may be an htaccess issue, in which case I need to a) make sure
.htaccess, and b) ensure other configurations are in place.
~$ ls /etc/apache2/mods-enabled/
Results include rewrite.load, showing mod_rewrite is enabled.
My Apache2 conf for the site:
~$ cat /etc/apache2/sites-enabled/site.us.conf
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName site.us
ServerAlias www.site.us
DocumentRoot /var/www/site.us/public_html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /var/www/site.us/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>
My .htaccess:
~$ cat /var/www/site.us/public_html/.htaccess
ErrorDocument 404 /404.html
Options +FollowSymLinks
RewriteEngine On
AddEncoding gzip .gz
AddEncoding gzip .gzip
<FilesMatch "\.(js.gz|js.gzip)$">
ForceType text/javascript
</FilesMatch>
<FilesMatch "\.(css.gz|css.gzip)$">
ForceType text/css
</FilesMatch>
RewriteCond %{REQUEST_URI} !^/index\.php
RewriteCond %{REQUEST_URI} !/ow_updates/index\.php
RewriteCond %{REQUEST_URI} !/ow_updates/
RewriteCond %{REQUEST_URI} !/ow_cron/run\.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php
order allow,deny
deny from 122.162.
deny from 113.193.27.
deny from 59.180.
allow from all
Any help is appreciated.