?page_id=2 -> company
?page_id=3 -> news
?page_id=4 -> production
?page_id=5 -> clients
?page_id=8 -> publications
Помогите настроить .htaccess
Код:
делаю .htaccess
Код:
RewriteEngine on
RewriteBase /
RewriteRule ^/company(.*)$ /index.php?page_id=2 [L]
RewriteRule ^/news(.*)$ /index.php?page_id=3 [L]
RewriteRule ^/production/$ /index.php?page_id=4 [L]
RewriteRule ^/clients/$ /index.php?page_id=5 [L]
RewriteBase /
RewriteRule ^/company(.*)$ /index.php?page_id=2 [L]
RewriteRule ^/news(.*)$ /index.php?page_id=3 [L]
RewriteRule ^/production/$ /index.php?page_id=4 [L]
RewriteRule ^/clients/$ /index.php?page_id=5 [L]
конфиг хоста
Код:
<VirtualHost *>
ServerName site.domen.com
ServerAdmin lor@gmail.com
DocumentRoot /usr/local/www/plasticcard/
DirectoryIndex index.php index.html
<Directory "/usr/local/www/plasticcard/">
Options FollowSymLinks
Options ExecCGI
AllowOverride All
Order deny,allow
Allow from all
</Directory>
ErrorLog /var/log/apache2/plasticcard/error_log
</VirtualHost>
ServerName site.domen.com
ServerAdmin lor@gmail.com
DocumentRoot /usr/local/www/plasticcard/
DirectoryIndex index.php index.html
<Directory "/usr/local/www/plasticcard/">
Options FollowSymLinks
Options ExecCGI
AllowOverride All
Order deny,allow
Allow from all
</Directory>
ErrorLog /var/log/apache2/plasticcard/error_log
</VirtualHost>
В итоге получаю
Код:
Forbidden
You don't have permission to access / on this server.
You don't have permission to access / on this server.
что не так делаю, подскажите пожалуйста?