Help to use no www

I get this:

This page does not work
The foro.rmesystems.com page has redirected you too many times.
ERR_TOO_MANY_REDIRECTS

That’s a .htaccess issue. Please use the code that @UnknownLolz provided, and then if it still does not work after clearing your cache, please share you .htaccess file.
Thanks

Ok, now this rule should work:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

I tested it and it seems to be working fine.
Check here: http://sub.tesuto.ga, it should automatically redirect you to a secure https connection.

here is my file and I kept getting the same problem.

RewriteEngine on
RewriteCond %{HTTP_HOST} ^foro.rmesystems.com [NC]
RewriteRule ^(.*)$ https://foro.rmesystems.com/$1 [L,R=301]

# In order for the web server to process this file it must be renamed to ".htaccess"

Options -Indexes
DirectoryIndex index.php

<IfModule mod_rewrite.c>
    #RewriteBase /

    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>

it already redirects to https, but I want that when I put:

https://www.foro.rmesystems.com

redirect me to:

https://foro.rmesystems.com

to a site without www

like this example

put:

https://www.blog.rmesystems.com

and it automatically redirects you to: https://blog.rmesystems.com

you can try it

Are you sure?

Do this first.

i already did that but i am using cloudflare

What did you do?

I requested the certificate from the certificates area, and installed the certificates from the control panel.
if i pause cloudflare it works normal.
with cloudflare activated it works if I put:

https://foro.rmesystems.com

but if I put:

https://www.foro.rmesystems.com

it does not work.

that’s why I want to redirect: https://www.foro.rmesystems.com
to:
https://foro.rmesystems.com

Is your CF dns correct?

1 Like

Like the placeholder text says: you can format your messages with BBCode, Markdown or HTML. So feel free to choose whatever markup language is easiest for you. Just please do apply it because pasting code without a code block is basically unintelligible.


The domain www.blog.rmesystems.com also gives an SSL error to me, but that domain is using Cloudflare. So it’s the certificate data sent by Cloudflare that doesn’t work.

I haven’t seen this issue before so I don’t fully understand why this happens. Maybe Cloudflare doesn’t issue SSL for sub-sub-domains? If so, you’re out of luck and can’t have HTTPS on that domain.

But you could ask Cloudflare for help about that.

2 Likes

Cloudflare’s Universal SSL Certificates and Unique SSL Certificates only cover the root level domain (example.com) and one subdomain level (* .example.com).

in this case:

https://www.blog.rmesystems.com

it would be a second level.

and the certificate doesn’t cover that, but it does cover:

www.rmesystems.com
or

blog.rmesystems.com

forum.rmesystems.com

if you put https://blog.rmesystems.com

it works

but if you include www in a subdomain: it doesn’t work.
that’s why I would like that when the user puts:

https://www.foro.rmesystems.com

redirects you to a site without www.

in this case it would be:

https://rmesystems.com

I don’t know if he let me understand

https://support.cloudflare.com/hc/es-es/articles/200170566-SoluciĂłn-de-errores-de-SSL

I’m sorry, but that’s just not how HTTPS works.

If you want to redirect from a HTTPS URL, that HTTPS URL must have a valid SSL certificate. If your browser can’t establish a valid SSL connection, it will abort the request to the server, which means you can’t redirect that URL.

Think about it: if you could redirect a website without a valid SSL certificate, then someone who hacked your network can intercept, say, the URL of your bank and redirect it to a phishing page. Since the SSL connection needs to be established first, this can’t happen.

So if you can’t get an SSL certificate on www.foro.rmesystems.com, then https://www.foro.rmesystems.com will ALWAYS return an SSL error. There is no way around it.

4 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.