sitemap  |  contact

Sakic.Net Forum
09 January 2009, 14:28 *
Welcome, Guest. Please login or register.
Did you miss your activation email?
Login with username, password and session length
News: Introducing AJAX Scroller - Joomla News Slider Module: http://www.sakic.net/news/introducing_ajax_scroller/
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  Products / SEF Advance / htpasswd/ htaccess in subdir, conflicting with sef advanced htaccess in root on: 23 May 2007, 15:43
Hi,

I have joomla/ sef advanced installed with an oscommerce installation in the directory webshop.

when i try to install a username/ password in the admin directory (using htaccess/ htpasswd), it is in conflict with the .htaccess that resides in the root of joomla, made by sef advance.

I know this because when i delete the .htaccess of SEF advanced, the htpasswd/ htaccess in the directory /webshop/admin/ works Perfectly.

So something in these lines is also applied on all subdirectories, probably the last line;

#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]
RewriteCond %{REQUEST_FILENAME} !\.(jpg|jpeg|gif|png|css|js|pl|txt)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php

How can i prevent SEF from url rewriting in the webshop directory so i can use htpasswd properly Huh? If i am correct the above code says to exclude real directories but it prevents (/conflicts with) the following htaccess code in subdirectories (in my case the webshop/admin/ dir);

AuthUserFile /home/lifeline/domains/lifeline.ipxl.nl/public_html/webshop/admin/.htpasswd
AuthGroupFile /dev/null
AuthName "test Secret Section"
AuthType Basic

<Limit GET POST>
require valid-user
</Limit>

The problem is also explained here;
http://forum.joomla.org/index.php/topic,30653.0.html

Rgds, DJ
2  Products / SEF Advance / Hi Saka; SEF vs Joomfish "Redirect to this URL" not working on: 11 May 2007, 16:42
Hi Saka,

Your product is very good; however, when i use {ccode} in "Redirect to this URL" in the configuration of the mambot, it starts looping and never resolves.

I was hoping to get the SEF Advanced to immediately forward the request to the proper language dir.

e.g. requests from Holland automatically go to http://lifeline.ipxl.nl/nl/

I enabled Joomfish support from the sef config. this is my .htaccess.

RewriteEngine On

RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]
RewriteCond %{REQUEST_FILENAME} !\.(jpg|jpeg|gif|png|css|js|pl|txt)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php

RewriteCond %{THE_REQUEST} /index\.php [NC]
RewriteRule ^index\.php$ / [NC,R=301,L]

RewriteCond %{QUERY_STRING} ^lang=(en|nl|de)$ [NC]
RewriteRule ^index\.php$ /%1/? [R,L]

Added these last 4 lines for improved joomfish support, however for testing sef config i temporarily disabled them, without result.

Any idea ?

Rgds, D.J.
Pages: [1]