Witaj Gościu!
(
Zaloguj
|
Rejestruj
)
Forum PHP.pl
Wortal
Forum
Szukaj
Regulamin
Pomoc
Użytkownicy
Kalendarz
PHPEdia.pl
Planeta
Przetestuj się!
Fanpage
Sklep php.pl
Forum PHP.pl
>
Forum
>
Gotowe rozwiązania
problem z plikiem
Opcje
inomi13
Zobacz profil
31.08.2020, 06:38:25
Post
#1
Grupa:
Zarejestrowani
Postów: 95
Pomógł:
0
Dołączył: 16.08.2017
Ostrzeżenie: (
0
%)
Mam problem ze stroną. Próbowałem wymusić SSL w pliku .htaccess, jednak teraz pojawia się poniższy błąd.
500 Internal Error
The server encountered an internal error and could not complete your request.
###HTACCESS_TOP
Options +FollowSymLinks +ExecCGI
<IfModule mod_rewrite.c>
RewriteEngine On
###HTACCESS_MIDDLE
# uncomment the following line, if you are having trouble
# getting no_script_name to work
RewriteBase /
RewriteRule ^product/attachment/([^/]+)/([^/]+)/(.+)$ index.php?module=stProduct&action=downloadAttachment&folder=$1&culture=$2&filename=$3 [L]
RewriteRule ^product/image/([0-9]+)/(.+)$ index.php?module=stProduct&action=showImage&folder=$1&image=$2 [L]
# we skip all files with .something
# comment the following 3 lines to allow periods in routes
RewriteCond %{REQUEST_URI} \..+$
RewriteCond %{REQUEST_URI} !\.html$
RewriteCond %{QUERY_STRING} ^pc_module_type=+$
RewriteRule .* - [L]
# 404 for non existed images
RewriteCond %{REQUEST_URI} \.(gif|jpeg|jpg|png|GIF|JPEG|JPG|PNG|ico)$
RewriteCond %{REQUEST_URI} !^(/media/products)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* 404_image.php [L]
# we check if the .html version is here (caching)
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
# no, so we redirect to our front web controller
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
# big crash from our front web controller
ErrorDocument 500 "<h2>Application error</h2>symfony application failed to start properly"
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "http://webcache.googleusercontent.com"
<Files ~ "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf|less)$">
Header set Expires "Thu, 15 Apr 2020 20:00:00 GMT"
</Files>
</IfModule>
<IfDefine sote>
<Files "\.(inc|php|php3|php4|php5|php6|phtml|phps)$">
AddHandler x-httpd-fastphp5 .inc .php .php3 .php4 .php5 .phtml
</Files>
</IfDefine>
###HTACCESS_BOTTOMz
« Następny starszy
·
Gotowe rozwiązania
·
Następny nowszy »
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:
Strona główna forum
Szukaj
Pomoc
Forum
|-- Przedszkole
|-- PHP
|-- Gotowe rozwiązania
|-- Po stronie przeglądarki
|-- XML, AJAX
|-- Bazy danych
|-- Serwery WWW
|-- Kontrola i zarządzanie projektami
|-- Optymalizacja i pozycjonowanie stron - SEO
Inne
|-- Hydepark
|-- Oceny
|-- Komputery i oprogramowanie
|-- Książki
|-- Opinie, ogłoszenia, pytania
|-- Giełda ofert
Wortal
|-- Newsy
|-- Artykuły
|-- Skrypty
Tryb wyświetlania:
Standardowy
·
Przełącz na: Linearny+
·
Przełącz na: Drzewo
Śledź ten temat
·
Wyślij temat na e-mail
·
Wydrukuj ten temat
·
Subskrybuj to forum
Wersja Lo-Fi
Aktualny czas: 26.09.2024 - 20:22
Powered By
IP.Board
© 2024
IPS, Inc
.
All changes by
PHP.pl Administrators
Hosting zapewnia