Rewrite URLs?
Off
When enabled, Friendly URLs will not include 'index.php'.
In order to support this you must download this file, upload it to your site's directory and rename it to '.htaccess' (with no file name). If there is already a .htaccess file, add the contents of this one to the existing.
If you are not sure how to do this, contact technical support for assistance.
http://softinfo.org/imgg/rewrite.jpg
Когато сваля файла от download this file и го поставя във папката директорията на форума ми излиза следното съобщение
internal server error
Ето какво има във файла
.htaccess
Код:
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule \.(js|css|jpeg|jpg|gif|png|ico|map)(\?|$) /404error.php [L,NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
ето и какви настройки съм добавил в /etc/apache2/sites-available файла 000-default.conf
Код:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride FileInfo
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Общо взето това съм направил и не мога да разбера къде се объркват нещата поставям файла .htaccess във директорията /var/www/forum и се бъгват нещата трия го и се оправят..
Ще съм благодарен някой ако може да помогне!!! благодаря предварително
skype: linux_bg-