Illustration dans page de login

Website URL

https://tradensemble.rf.gd

Error Message

Hello,
Is it possible to add an image (JPG or other format) to the login page?
If so, which file needs to be modified (.htaccess or another)?
And finally, what code should be used to ensure the image is the right size and centered?

Other Information

Thank you for your valuable help.

Beep boop, I’m a bot! I dug through the forum to get you started. I sometimes get things wrong though, so do with this what you will until a human has a look.

Which login page do you mean? The answer depends on what produces it, so I need to know that first.

  • Is it a login form from a script or CMS, like WordPress? If so, which one?
  • Is it a login form you wrote yourself in HTML or PHP?
  • Is it the grey browser popup that asks for a username and password?

If it’s a form you wrote yourself, the image goes in the HTML file that contains the form, not in .htaccess. For a CMS, it’s usually changed through the theme or a plugin, so I’d need to know which CMS. The browser popup can’t show an image at all.

Also, the address you posted doesn’t match the free subdomain on your hosting account, which has a number in it. Can you confirm which address is the site with the login page?

It’s possible on most systems. But end of the day, you built your site. We don’t even know what tools you used to build it.

Ultimately the best person to answer your question is you

I realized too late that I couldn’t modify the .htaccess file.

The goal is to display the following on the same screen simultaneously:

- an image showing the site the user wants to visit (unprotected);

- a pop-up underneath asking for the username and password to access the actual site.

I am using Dreamweaver to build the site.

That sounds like it should be possible with a custom login screen.

I’m not overly familiar with Dreamweaver. But a quick Google got me this article

https://helpx.adobe.com/dreamweaver/desktop/building-applications-visually/building-login-page.html

For Dreamweaver specific issue you might be better if they have their own support forum asking there.

If you’re using the infinity free protected directories tool, then I don’t think what you’re trying to do is possible with that

You can modify the .htaccess file, just not the one in your account’s root folder. But like it says right at the top of that file, you can create a new .htaccess file in your website’s htdocs folder and add your own rules there.

No, that’s 100% not possible. The protected directories feature makes use of HTTP basic auth, meaning that the server just says “please login”, and the actual login screen is created by the browser itself. You can specify a description, but that’s all the protocol supports.

If you want more control, you’ll need a login system as part of your website. And then what styling options are available depends on how your website is built.

I understand, it’s too difficult for me. Thank you

I’ve given it some more thought, and with the help of an AI, I can see a way to create a login page that grants access to the protected site, just as you suggested. I had the idea in mind already, but I wasn’t sure if it was feasible—or, more importantly, how to go about it. I now have a code template that should theoretically allow me to handle this, keeping things as simple as possible to start with. If you’re interested—and provided the code works—I’d be happy to share it. Thanks for your help.