I'm using the following to redirect http to https in my root directory htaccess file <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] </IfModule> But this seems not to work if I access directly sub directories (http://example.com/sub-directory/) unless I place this mod_rewrite in an htaccess file in all my sub drectories. Anyone knows a better way to do this? Just in my root htaccess file?

Member Avatar
Member Avatar
+0 forum 3

hello everyone gld this community exist ! i'm facing new problem with apache2 on ubuntu i'm using lamp from yesterday and everything works fine knowing that i'm originaly from windows ! so when i type `gksu service apache2 start` in terminal and then put my password, when i refresh localhost on navigtor my site doesn't load, so i type `gksu service apache2 sttus`i get this ● apache2.service - The Apache HTTP Server Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled Drop-In: /lib/systemd/system/apache2.service.d └─apache2-systemd.conf Active: failed (Result: exit-code) since Sun 2017-06-11 17:52:48 EEST; 8s ago Process: 7418 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE) juin …

Member Avatar
Member Avatar
+0 forum 12

I'm using Mamp 3 (pro) on Mac OS X Yosemite 10.10; I'v already compiled and installed mod_proxy_html (3.1.2) and mod_xml2enc, they are both correctly loaded by Apache 2.2.29 without issues. This is my typical html file: <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Authorization" content="Bearer dummyToken"> <title>Header Test</title> </head> <body> </body> I need to **convert all the <meta http-equiv="some" content="thing"> to real http headers**. I've already known how to do this via ajax, it's not a problem. But I need to add an oauth token, inside the **Authorization header field**, to get access to various protected resources, …

Member Avatar
Member Avatar
+0 forum 7

Hi, I'm in need of assistance with mod_rewrite. Currently, I've a folder at www.domain.com/folder. I need to leave the files where they are, but have the address bar in the browser appear as someothername.domain.com Any help would be greatly appreciated! I should mention that I've already got a few .htaccess rules in place, as shown here: Options +FollowSymLinks RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-f RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule ^(.+)$ index.php?$1 [QSA,L] Thanks in advance, -Ray

Member Avatar
Member Avatar
+0 forum 1

The End.