Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
192 views
in Q2A Core by

I had put this on my websites .htaaccess file

DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine On

#RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]

RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yourwebsite.com/$1 [R=301,L]

RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
RewriteRule . %1/%2 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ index.php?qa-rewrite=$0&%{QUERY_STRING} [L]

</IfModule>

and when i removed it my website show this error

Your connection is not private

Attackers might be trying to steal your information from electronics2electrical.com (for example, passwords, messages or credit cards).

NET::ERR_CERT_COMMON_NAME_INVALID

not secure

1 Answer

+1 vote

Welcome to the Q&A site for Question2Answer.

If you have a question about Q2A, please ask here, in English.

To report a bug, please create a new issue on Github or ask a question here with the bug tag.

If you just want to try Q2A, please use the demo site.

Categories

...