.htaccess нужна помощь
.htaccess нужна помощь
Przepraszamy, błąd serwera. Prawdopodobnie w pliku .htaccess użyto błędnej opcji.
вот конфига файла, в чем собственно проблемма?
DirectoryIndex index.html index.php
<IfModule mod_deflate.c>
# Compress HTML, CSS, JavaScript, Text, XML, fonts
AddOutputFilterByType DEFLATE application/javascript application/x-javascript text/javascript application/json
AddOutputFilterByType DEFLATE application/x-font application/x-font-opentype application/x-font-otf application/x-font-truetype application/x-font-ttf font/opentype font/otf font/ttf application/x-woff application/x-font-woff
AddOutputFilterByType DEFLATE text/css text/html text/plain
<IfModule mod_headers.c>
# Remove browser bugs (only needed for really old browsers)
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent
</IfModule>
</IfModule>
<IfModule mod_headers.c>
<FilesMatch "\.(ttf|ttc|otf|eot|woff|css|png|gif|ico|jpe?g)$">
Header set Access-Control-Allow-Origin "*"
</FilesMatch>
</IfModule>
# Cache all images for 2 weeks
<IfModule mod_expires.c>
<FilesMatch "\.(jpg|jpeg|png|gif|tiff|bmp|js|css)$">
ExpiresActive on
ExpiresDefault "access plus 2 weeks"
</FilesMatch>
</IfModule>
<IfModule mod_headers.c>
<filesMatch "\.(gif|png|jpg|jpeg|ico|js|css)$">
Header set Cache-Control "max-age=1209600"
</filesMatch>
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine on
# Please note that RewriteBase setting is obsolete use it only in case you experience some problems with SEO addon.
# Some hostings require RewriteBase to be uncommented
# Example:
# Your store url is http://www.yourcompany.com/store/cart
# So "RewriteBase" should be:
# RewriteBase /store/cart
# RewriteBase /
Options -MultiViews
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{REQUEST_URI} ^api/(.*)$ [or]
RewriteCond %{REQUEST_URI} .*/api/(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .*api/(.*)$ api.php?_d=$1 [L,QSA]
RewriteCond %{REQUEST_URI} \.(png|gif|ico|swf|jpe?g|js|css|ttf|svg|eot|woff|yml|xml)$ [or]
RewriteCond %{REQUEST_URI} store_closed.html$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*?)\/(.*)$ $2 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L,QSA]
</IfModule>
# This prevents possible problems when downloading files
<IfModule mod_php5.c>
php_flag zlib.output_compression Off
</IfModule>
Отправлено спустя 8 минут 18 секунд:
http://demoshop.zzz.com.ua/
вот конфига файла, в чем собственно проблемма?
DirectoryIndex index.html index.php
<IfModule mod_deflate.c>
# Compress HTML, CSS, JavaScript, Text, XML, fonts
AddOutputFilterByType DEFLATE application/javascript application/x-javascript text/javascript application/json
AddOutputFilterByType DEFLATE application/x-font application/x-font-opentype application/x-font-otf application/x-font-truetype application/x-font-ttf font/opentype font/otf font/ttf application/x-woff application/x-font-woff
AddOutputFilterByType DEFLATE text/css text/html text/plain
<IfModule mod_headers.c>
# Remove browser bugs (only needed for really old browsers)
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent
</IfModule>
</IfModule>
<IfModule mod_headers.c>
<FilesMatch "\.(ttf|ttc|otf|eot|woff|css|png|gif|ico|jpe?g)$">
Header set Access-Control-Allow-Origin "*"
</FilesMatch>
</IfModule>
# Cache all images for 2 weeks
<IfModule mod_expires.c>
<FilesMatch "\.(jpg|jpeg|png|gif|tiff|bmp|js|css)$">
ExpiresActive on
ExpiresDefault "access plus 2 weeks"
</FilesMatch>
</IfModule>
<IfModule mod_headers.c>
<filesMatch "\.(gif|png|jpg|jpeg|ico|js|css)$">
Header set Cache-Control "max-age=1209600"
</filesMatch>
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine on
# Please note that RewriteBase setting is obsolete use it only in case you experience some problems with SEO addon.
# Some hostings require RewriteBase to be uncommented
# Example:
# Your store url is http://www.yourcompany.com/store/cart
# So "RewriteBase" should be:
# RewriteBase /store/cart
# RewriteBase /
Options -MultiViews
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{REQUEST_URI} ^api/(.*)$ [or]
RewriteCond %{REQUEST_URI} .*/api/(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .*api/(.*)$ api.php?_d=$1 [L,QSA]
RewriteCond %{REQUEST_URI} \.(png|gif|ico|swf|jpe?g|js|css|ttf|svg|eot|woff|yml|xml)$ [or]
RewriteCond %{REQUEST_URI} store_closed.html$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*?)\/(.*)$ $2 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L,QSA]
</IfModule>
# This prevents possible problems when downloading files
<IfModule mod_php5.c>
php_flag zlib.output_compression Off
</IfModule>
Отправлено спустя 8 минут 18 секунд:
http://demoshop.zzz.com.ua/
-
- Стать:
Re: .htaccess нужна помощь
Здравствуйте.
Наш сервис использует Appache 2.2 и по всей видимости некоторые опции на Вашем сайте могут генерировать ошибки. Кроме того, в Вашем коде должен присутствовать атрибут RewriteBase
Наш сервис использует Appache 2.2 и по всей видимости некоторые опции на Вашем сайте могут генерировать ошибки. Кроме того, в Вашем коде должен присутствовать атрибут RewriteBase
Re: .htaccess нужна помощь
ок а этоFatal error: require(): Failed opening required '/virtual/demoshop.zzz.com.ua/app/lib/vendor/autoload.php' (include_path='.:/opt/php55u/lib/php') in /virtual/demoshop.zzz.com.ua/init.php on line 22 ?
-
- Стать:
Re: .htaccess нужна помощь
По всей видимости Вы не скопировали файлы в нужную для этого папку. А строка с autoload.php появляется в init.php.
Re: .htaccess нужна помощь
Спасибо за ответ милейший, есть промежуточный результат работаем дальше ) http://demoshop.zzz.com.ua/
- Helenwatcher
- Повідомлень: 5475
- З нами з: Чет листопада 24, 2022 7:43 am
- Стать:
- Агент користувача:
.htaccess нужна помощь
https://wakelet.com/wake/Y0gBQRBvuUna5UmL5TgUP
https://is.gd/FoVK9Q
https://is.gd/zzXBRc
https://is.gd/igbPzF
https://is.gd/9Pet0S
http://shiningalightontheworldofwatch.splashthat.com
https://tinyurl.com/bdstbpt8
https://tinyurl.com/47h7twfx
https://tinyurl.com/3xepvabx
https://tinyurl.com/624vvyfr
https://tinyurl.com/2p936bft
https://newaffordabledivewatch.splashthat.com
http://tiny.cc/p9u3vz
http://tiny.cc/r6u3vz
http://tiny.cc/p6u3vz
http://tiny.cc/o9u3vz
http://tiny.cc/g6u3vz
https://wontbearoundforlong.splashthat.com
https://rebrand.ly/0e7vpwg
https://rebrand.ly/9duiv05
https://rebrand.ly/eb2d7q1
https://rebrand.ly/l2cxjpd
https://rebrand.ly/smm9425
https://plaza.rakuten.co.jp/helenwatche ... 212090000/
https://is.gd/FoVK9Q
https://is.gd/zzXBRc
https://is.gd/igbPzF
https://is.gd/9Pet0S
http://shiningalightontheworldofwatch.splashthat.com
https://tinyurl.com/bdstbpt8
https://tinyurl.com/47h7twfx
https://tinyurl.com/3xepvabx
https://tinyurl.com/624vvyfr
https://tinyurl.com/2p936bft
https://newaffordabledivewatch.splashthat.com
http://tiny.cc/p9u3vz
http://tiny.cc/r6u3vz
http://tiny.cc/p6u3vz
http://tiny.cc/o9u3vz
http://tiny.cc/g6u3vz
https://wontbearoundforlong.splashthat.com
https://rebrand.ly/0e7vpwg
https://rebrand.ly/9duiv05
https://rebrand.ly/eb2d7q1
https://rebrand.ly/l2cxjpd
https://rebrand.ly/smm9425
https://plaza.rakuten.co.jp/helenwatche ... 212090000/