redirecting domain to subfolder with .htaccess

I’m new to using and changing the workings of a server and all that. So far I’ve only had one server with one domain for myself, but now a business is getting some traction and I want to use a different domain for it while keeping it on my server.

The situation is like this:

I have the main domain and root directory like maindomain.com. I also just bought projectdomain.com.

The files for projectdomain.com are within maindomain.com/project/.

I have established a forward from projectdomain.com to maindomain.com/project/ already, but I can’t access sites via the url.

For example:

I wan’t to type projectdomain.com/somecontent/ and access maindomain.com/project/somecontent while maintaining the projectdomain.com link in the adress bar.

When I try it now I always end up in maindomain.com/project/ and never in the file I specified in the url.

I’ve tried working around it with the .htaccess file, but don’t really know much about it. What I have now is

RewriteEngine On RewriteCond %{HTTP_HOST} (www\.)?projectdomain.com RewriteRule (.*) http://maindomain.com/project/$  1 [R=301,L] 

Sorry for the noob question, I really don’t know much about the topic and I’m not sure what to google to get what I want.

How to force a browser when connecting to a specific domain to be https only using only the client machine?

Is it possible to force a client (browser or host machine or etc) to only make https connections to a specific URL/domain?

(preferably non-admin/root fixes if possible)

Here is a fabricated scenario:

Lets say someone hosted a website, and they didn’t put in an http -> https redirect and the web-server is serving requests on both 80/443 http/https respectively.

We are the client machine we work at a company and they wont fix the web-server for one reason or another. We do not have other machines to use as a proxy and have no control over the network. Now we could just make a bookmark (or other form of workflow that forces our actions to always reach https) but there has to be a way built in to browsers that can, say, “Do not connect to this domain/url unless using this protocol”.

This would be my preferred approach if possible.

This is very frustrating for people who are security focused as accidentally hitting the http version will leak your session ID and if you login there RIP password.

I searched online but surprisingly found nothing.

Do 150 unique domain dofollow blog comments backlinks DA 40++ for $5

unique domain Do-follow Blog Commenting backlinks is most reliable and powerful link buildingmethod in SEO market. This service Deliver Best result as per penguin panda update! No other seller can offer this high-quality unique domain blog commenting dof0llow backlinks service. Dofollow backlinks is very important you site and now with the extinction of Gooogle PageRank, the secondary metrics Domain authority, Trust flow, and citation flow are becoming the ranking factors in Gooogle. GOOGLE OFFICIALLY END ALL WEBSITES PAGE RANK (PR) I offer you to build manual 200 unique domain do follow backlinks on High PA/DA and page that are able to grab maximum Link juice for you. also It is help Rankings with these most powerful blog comments. Key Features: Actual Page High Metrics100% Do-follow AttributeNot Use Any Automated SoftwareAccording to latest Google Update 2019100% Approval Rates.100% Manual & Live Links100% Google Panda & Penguin SafeAll Languages AcceptabilityDetailed Excel Report on Order Completion24/7 Customer SupportIf you have any Question so please contact me order now…

by: qualityservice9
Created: —
Category: Blog Comments
Viewed: 271


Google .dev domain strangely redirects to https

I bought a .dev domain today @ domains.google. I also set up a dedicated nginx web server to which the .dev domain points (A records).

Very strangely, I can’t access my nginx welcome page using my example.dev domain, because for some weird reason I’m redirected to https://example.dev which then fails (no connection can be established). However, ALL other domains pointing to this new server work seamless. Like example.com just works. I didn’t configure ANYTHING in nginx, just installed it. Obviously enough, this has something to do with Google as the registrar. OK – so I shall contact the Google support, right? Yes. I did that, however, some very silly support girl told me this was something I needed to handle on my side and always referring to ‘contact your web host’ (which isn’t too much of an advice since I’m the host).

I tried everything in the Google console, but I can’t get it to work. The Google support was very, very disappointing and I’m now hoping to see some resolutions on this problem.

Google domain strangely redirects to https

I bought a .dev domain today @ domains.google. I also set up a dedicated nginx web server to which the .dev domain points (A records).

Very strangely, I can’t access my nginx welcome page using my example.dev domain, because for some weird reason I’m redirected to https://example.dev which then fails (no connection can be established). However, ALL other domains pointing to this new server work seamless. Like example.com just works. I didn’t configure ANYTHING in nginx, just installed it. Obviously enough, this has something to do with Google as the registrar. OK – so I shall contact the Google support, right? Yes. I did that, however, some very silly support girl told me this was something I needed to handle on my side and always referring to ‘contact your web host’ (which isn’t too much of an advice since I’m the host).

I tried everything in the Google console, but I can’t get it to work. The Google support was very, very disappointing and I’m now hoping to see some resolutions on this problem.

Or is there really something on my server/nginx side I can take care of? I couldn’t think of any.

Malayproject.com (Domain Name)

Malayproject.com
Registered : Namebright.com
Payment Method : Paypal
Price : $ 100 USD
————————————————————-
How To Buy This Domain Through DigitalPoint Forum

1. You must have an account at digitalpoint forum, if you don't have yet, just create one, it's free.
Register -> https://www.digitalpoint.com/register/
2. click "domain info : malayproject.com (Beta)" at above this page, or you can just go to this link…

Malayproject.com (Domain Name)