Witam.
Mam problem z poprawnym działaniem skryptu na serwerze. Znajomy udostępnił mi miejsce na serwerze, ale nie działają tak zwane przyjazne linki - są one potrzebne do poprawnego wyświetlania strony.
Jak się dowiedziałam, powodem jest brak jakichś regułek dla tego serwera. Z tego co wyczytałam to trzeba przepisać plik htaccess, pod serwer lightpd - i tu kompletnie nie wiem jak się z tym uporać.
Bardzo proszę o pomoc bo już cały weekend się z tym męczę i z miejsca ruszyć nie mogę.
Poniżej zawartość pliku htaccess skryptu
[HTML]# URL Rewrite
<IfModule mod_rewrite.c>
RewriteEngine On
#
# Full path to your site
#
RewriteBase /
#
# Rules
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php?do=/$1
# Image Access Protection
# RewriteRule ^file/pic/photo/(.*)\.(.*)$ static/image.php?file=$1&ext=$2
</IfModule>
# Modify Headers
<IfModule mod_headers.c>
# Cache files
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|swf|mp3|mp4)$">
Header set Cache-Control "public"
Header set Expires "Mon, 20 Apr 2015 20:00:00 GMT"
Header unset Last-Modified
</FilesMatch>
# Cache JavaScript & CSS
<FilesMatch "\.(js|css)$">
Header set Cache-Control "public"
Header set Expires "Mon, 20 Apr 2015 20:00:00 GMT"
Header unset Last-Modified
</FilesMatch>
</IfModule>
# DEFLATE
<IfModule mod_deflate.c>
<FilesMatch ".(css|js|x?html?|php)$">
SetOutputFilter DEFLATE
</FilesMatch>
# Drop problematic browsers
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
# BrowserMatch bMSIE !no-gzip !gzip-only-text/html
BrowserMatch bMSI[E] !no-gzip !gzip-only-text/html
# Don't compress images
SetEnvIfNoCase Request_URI
.(?:gif|jpe?g|png)$ no-gzip dont-vary
# Make sure proxies don't deliver the wrong content
Header append Vary User-Agent env=!dont-vary
</IfModule>
# GZIP
<ifModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</ifModule>[/HTML]
Za pomoc z góry dziękuję.
Pozdrawiam serdecznie.