Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.apache.configuration > #4379 > unrolled thread

Big Problems with rewrite...

Started byrafflenbeul <daniel-r@gmx.net>
First post2019-10-13 14:37 +0200
Last post2019-10-13 09:59 -0500
Articles 2 — 2 participants

Back to article view | Back to alt.apache.configuration


Contents

  Big Problems with rewrite... rafflenbeul <daniel-r@gmx.net> - 2019-10-13 14:37 +0200
    Re: Big Problems with rewrite... Mk5000 <marika5000@gmail.com> - 2019-10-13 09:59 -0500

#4379 — Big Problems with rewrite...

Fromrafflenbeul <daniel-r@gmx.net>
Date2019-10-13 14:37 +0200
SubjectBig Problems with rewrite...
Message-ID<h0gk56Fgi30U1@mid.individual.net>
Hello..
I`ve got the following Problem and hppe someone could help me..

In my apache2 document root ist the following htaccess :


RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule (.*) https://%{HTTP_HOST}/$1 [R=301,L]

Should rewrite from http to https.
That works

but from the root another folder with folder insite :
first folder, new htaccess :
Options +FollowSymLinks
RewriteRule ^(.*)-p-(.*).html$ main_34.php?items_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-c-(.*).html$ main_29.php?bigPfad=$2&%{QUERY_STRING}
RewriteRule ^(.*)-m-(.*).html$ main_29.php?producers_id=$2&%{QUERY_STRING}

First thing that`s NOT works


 From her another underfolder with htaccess :

AuthType Basic
					AuthUserFile /home/docjack/public_html/bwshop/configmain/.htpasswd
					AuthName "Geschuetzer Bereich"
					order deny,allow
					allow from all
					require valid-user



That doesn`t work also.


WHY ???

[toc] | [next] | [standalone]


#4380

FromMk5000 <marika5000@gmail.com>
Date2019-10-13 09:59 -0500
Message-ID<RIydnd3V6ON2pj7AnZ2dnUU7-X_NnZ2d@earthlink.com>
In reply to#4379
rafflenbeul <daniel-r@gmx.net> wrote:
> Hello..
> I`ve got the following Problem and hppe someone could help me..
> 
> In my apache2 document root ist the following htaccess :
> 
> 
> RewriteEngine On
> RewriteCond %{SERVER_PORT} !^443$
> RewriteRule (.*) https://%{HTTP_HOST}/$1 [R=301,L]
> 
> Should rewrite from http to https.
> That works
> 
> but from the root another folder with folder insite :
> first folder, new htaccess :
> Options +FollowSymLinks
> RewriteRule ^(.*)-p-(.*).html$ main_34.php?items_id=$2&%{QUERY_STRING}
> RewriteRule ^(.*)-c-(.*).html$ main_29.php?bigPfad=$2&%{QUERY_STRING}
> RewriteRule ^(.*)-m-(.*).html$ main_29.php?producers_id=$2&%{QUERY_STRING}
> 
> First thing that`s NOT works
> 
> 
> From her another underfolder with htaccess :
> 
> AuthType Basic
> 					AuthUserFile /home/docjack/public_html/bwshop/configmain/.htpasswd
> 					AuthName "Geschuetzer Bereich"
> 					order deny,allow
> 					allow from all
> 					require valid-user
> 
> 
> 
> That doesn`t work also.
> 
> 
> WHY ???
> 

Dunno

Mk5000

The whole earth boiled / And heaven and the sea." —theogony

[toc] | [prev] | [standalone]


Back to top | Article view | alt.apache.configuration


csiph-web