Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> problem z plikiem
inomi13
post 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
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 29.03.2024 - 00:55