[ mikajlovic @ 12.09.2019. 18:58 ] @
Pozdrav svima, imam sajt u testpattern-u, pod apache (uobičajeno, cpanel itd) kod domaceg provajdera. Sajt se učitava kako treba, sve osim slika. Od provajdera sam dobio imejl da treba izmeniti .htaccess da bi to profunkcionisalo. Ceo fajl je dole Code: #DirectoryIndex index.php index.html #Options +FollowSymLinks Options -Indexes <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^servisracunara.co [NC] RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$ RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$ RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ RewriteRule ^(.*)$ http://www.servisracunara.co/$1 [L,R=301] #RewriteBase /relative/web/path/ RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www.)?servisracunara.co/.*$ [NC] RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$ RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$ RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ RewriteRule .(gif|jpg|png)$ - [F] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$ RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$ RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ RewriteRule ^(.+) - [PT,L] RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$ RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$ RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ RewriteRule ^(.*) index.php RewriteCond %{HTTP:Authorization} !^$ RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$ RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$ RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}] </IfModule> Redirect 301 /onama.html http://www.example.com/o-nama Redirect 301 /proizvodi.html http://www.example.com/sklapanje-racunara Redirect 301 /usluge.html http://www.example.com/cenovnik Redirect 301 /download.html http://www.example.com/korisni-programi Redirect 301 /kontakt.html http://www.example.com/kontakt Redirect 301 /saveti.html http://www.example.com/saveti Redirect 301 /vracanje.html http://www.example.com/spasavanje-podataka Redirect 301 /odrzavanjeracunara.html http://www.example.com/odrzavanje-racunara Redirect 301 /web.html http://www.example.com/izrada-web-sajtova Redirect 301 /default http://www.example.com <files .htaccess> order allow,deny deny from all </files> # protect config.php <files config.php> order allow,deny deny from all </files> #php_value register_globals 0 Probao sam sa ovim kodom ali ništa. Svaki savet je dobrodošao. Code: RewriteEngine on RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] |