WebSite X5Help Center

6 Ответы
E.G. Teljeur
E.G. Teljeur
User

You got to add to the .htaccess file the following code;

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.nameofwebsite.xxx/$1 [R,L]
</IfModule>

Читать больше
Размещено От E.G. Teljeur
Ruth S.
Ruth S.
User
Автор

Thanks so much for your responses. I'm pretty new to this so where can I find the .htaccess file in order to add the code?

I'm using 123reg.

Thanks again for your help

Читать больше
Размещено От Ruth S.
E.G. Teljeur
E.G. Teljeur
User

The .htaccess file should be in the root directory of the server where your website is hosted. If it's not there you can create one on your computer with a text editor and upload it to the server.

Читать больше
Размещено От E.G. Teljeur
Esahc ..
Esahc ..
Moderator

Ruth, htaccess will already exist, but it is a hidden file. I use filezilla (free) or similar. You can find it in with the rest of your website files on the host, in Filezilla, in the right pane right click download, and then in the left pane right click edit, then upload again after changes (filezilla will prompt).

Before you download or edit, you may wish to make a copy. If you get the syntax wrong, your site may not load.

Читать больше
Размещено От Esahc ..
Ruth S.
Ruth S.
User
Автор

great, thanks for this, will check it out. Much appreciated!

Читать больше
Размещено От Ruth S.