Htaccess redirect from subfolder

Alles, was den Apache betrifft, kann hier besprochen werden.

Htaccess redirect from subfolder

Postby bardossi » 05. May 2018 19:51

Hello to everyone,
I am new here and not a programmer, just an enthusiastic amateur...
I am running a Joomla site of a nonprofit organization and its Opencart shop from a subfolder. I bought an SSL Certificate for the site (that one is working) and want to use for the shop as well, but I am unable to set up the .htaccess properly, I tried many tutorials but without success.


The point: I want to force it to use SSL, so redirect http to https, and redirect www to non-www, at the same time. I guesss that is with 2 RewriteCond and 1 RewriteRule and I am trying to modify my .htaccess of the shop subfolder. My site is lets say 'site.com' and the shop route is 'site.com/shop'.
Is there someone who can help me in this case? Any help would be appreciated! Thanks!
bardossi
 
Posts: 1
Joined: 05. May 2018 19:42
XAMPP version: 3.2.2
Operating System: Windows 8.1

Re: Htaccess redirect from subfolder

Postby JJ_Tagy » 06. May 2018 12:32

You're better off using a htaccess builder online. Check the boxes you want, type the hostname/files, submit and viola!
JJ_Tagy
 
Posts: 788
Joined: 30. January 2012 13:44
XAMPP version: 5.5.15
Operating System: Windows 10 Pro x64

Re: Htaccess redirect from subfolder

Postby Nobbie » 07. May 2018 10:35

Can you show us your current (noi working?) .htaccess please? And please dont replace any code with "pseudocode", i cannot help on that. I need real code.
Nobbie
 
Posts: 13171
Joined: 09. March 2008 13:04


Return to Apache

Who is online

Users browsing this forum: No registered users and 27 guests