Страница 1 из 1

Помогите настроить .htaccess

Добавлено: 2010-10-10 9:13:57
100matolog
Требуется преобразовать

Код: Выделить всё

?page_id=2 -> company
?page_id=3 -> news
?page_id=4 -> production
?page_id=5 -> clients
?page_id=8 -> publications
делаю .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]
конфиг хоста

Код: Выделить всё

<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.
что не так делаю, подскажите пожалуйста?

Re: Помогите настроить .htaccess

Добавлено: 2010-10-10 10:06:32
100matolog
вставил Options +FollowSymLinks в начало файла .htaccess
завелось
только почемуто стили не подхватились когда ввожу http://site.domen.com/company/

когда без последнего слеша http://site.domen.com/company - то работает стиль

Re: Помогите настроить .htaccess

Добавлено: 2010-10-10 11:54:33
hizel
RewriteRule ^/clients/$ /index.php?page_id=5 [L]

Re: Помогите настроить .htaccess

Добавлено: 2010-10-10 15:35:24
100matolog
hizel писал(а):
RewriteRule ^/clients/$ /index.php?page_id=5 [L]
неа..все равно стили не подхватились

Re: Помогите настроить .htaccess

Добавлено: 2010-10-10 15:44:39
100matolog
стили лежат в папке style/