Am having redirecting problem


am using this code to redirect from my site domain name to the index page
http to https
but the only problem is that it redirects the users first to
https and then to HTTP:/ then to https
I want it to redirect directly to the secure version of the index page this is my rewrite rule

# redirect from the subdomain to the website
 RewriteCond %{HTTP_HOST} ^[NC,OR]
 RewriteCond %{HTTP_HOST} ^[NC]
# urls without file extintion 
 RewriteRule ^(.*)$ https[L,R=301,NC]
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteRule ^([^\.]+)$ $1.php [NC,L]

# changing the default index page
RewriteBase /
#only for the root directory
RewriteCond %{REQUEST_URI} ^/$
#if the uri is not already index.php
RewriteCond %{REQUEST_URI} !^/browser-games/index [NC]
RewriteRule ^$ /browser-games/index    [R=301,L]

# rederct the www to none www 
RewriteCond %{HTTP_HOST} ^www\.gamehup\.com[NC]
RewriteRule ^(.*)$ https [L,R=301]

and am using cloudflary to redirect to https

I can't enter some of my website pages when i activated cloudflary SSL

@ayu can you please help me with this


Try this code
RewriteEngine On RewriteCond %{HTTP_HOST} ^(www\.)?gamehup\.fix [NC] RewriteRule ^(.*)$ https://gamehup.fix/browser-games/index/$1 [R=301,NC,L]


hello everyone,
anyone knows how to appoint my domain (hosted in networking solutions) to my page without loosing the txt and mx configuration? when I point in my domain servers to
and i lost all the configurations, please help folks.


check this tutorial on how to point a domain name hosted else where to 000webhosting and you will not lose anything


how can I redirect from to


Try this:
Copt this in your .htaccess file

RewriteEngine on
RewriteOptions inherit

RewriteCond %{HTTP_HOST} ^$ [NC]
RewriteRule ^(.*)$$1 [R=301,L]


it keep looping the url in the url bar when i used the code below


check my .htaccess write rules above and see if the code you give me complete with it


cuz right now am having the problem that every redirect on my htaccess file redirect 3x and it will be very good for me if it was 2x


and am appalling always use https and automatic https rewrite on cloudflary page rule does this have anything top do with the redirect


May be that’s because you’ve to add a script to remove file extension too.

Anyhow I see that you’ve already fixed it by yourself. :slight_smile:


iv’e fixed the new problem by retiring to the old problem it still redirecting me 4 times. i need it to redirect from the domain to right now it redirect from the domain to the HTTP version of the domain then to the https version of the domain then to the HTTP version if the index page then to the https version of the index page above and that lots of redirecting


is your issue fixed or are you still facing the same?? :sweat_smile:


according to gtmetrix am still having the same issue


this is screen shut from gtmetrix


I guess that’s the http->https transition .


so it can’t be fixed. and another thing i want to change my website to ajax site using ajax to load pages. will it effect my website in a good or a bad way and thanks


Should be in a good way :slight_smile:


OK then thanks, another q let’s say am from country where no papal payza payneer visa card or any type of card allowed, and i want to buy a premium web hosting how can i do that.i know it’s missed up