Joomla! Discussion Forums



It is currently Mon Nov 23, 2009 3:35 am (All times are UTC )

 




Post new topic Reply to topic  [ 92 posts ]  Go to page Previous  1, 2, 3, 4
Author Message
Posted: Sun May 21, 2006 2:29 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Feb 01, 2006 5:47 am
Posts: 16
Goosemoose wrote:
I dont' know if this helps at all, but just in case.

The reason xtdratings & facileforms stopped working is because of these lines in sef.php, once commented out everything started working again. Any ideas on why?

Code:
// if ($juri != "" && !eregi( "index.php", $_SERVER['REQUEST_URI'] ) && !eregi( "index2.php", $_SERVER['REQUEST_URI'] ) && !eregi( "/?", $_SERVER['REQUEST_URI'] ) ) {
header( 'HTTP/1.0 404 Not Found' );
require_once( $mosConfig_absolute_path . '/templates/404.php' );
exit( 404 );
}



That code effectively prevents any attempts to use querystrings (or simply REQUEST_URI's with questionmarks in it) on scripts other than index.php and index2.php while in SEF mode, which is great for security reasons.

But... since we want to run the facile forms script with querystring data as well, we need to add a:

Code:
&& !eregi( "components\/com_facileforms\/facileforms\.frame\.php", $_SERVER['REQUEST_URI'] )


to the conditions, like this:

Code:
      if ($juri != "" && !eregi( "index\.php", $_SERVER['REQUEST_URI'] ) && !eregi( "index2\.php", $_SERVER['REQUEST_URI'] ) && !eregi( "components\/com_facileforms\/facileforms\.frame\.php", $_SERVER['REQUEST_URI'] ) && !eregi( "/\?", $_SERVER['REQUEST_URI'] ) ) {
         header( 'HTTP/1.0 404 Not Found' );
         require_once( $mosConfig_absolute_path . '/templates/404.php' );
         exit( 404 );
      }


And facile forms should work even in SEF-mode.

Check it out working fine at http://www.motin.eu/Contact-Me.html

_________________
http://www.motin.eu
http://joomlacode.org/gf/project/jmultisites/


Top
  E-mail  
 
Posted: Fri Dec 14, 2007 9:24 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Fri Dec 14, 2007 9:14 am
Posts: 3
Hi,
Sorry for being a novice at this, but I do not understand how to fix my .htaccess file.

When I try to create a password protected directory on our website, I get a "File not Found Error". From what I understand this is due to a problem in the joomla .htaccess file?

Note that I am running an old version of Joomla (possibly v1.0.13) and I can currently not upgrade.

How would I rewrite the current file (see code below) to be able to use password protected directories?

TIA!!

Code:

#
# Apache/PHP/Drupal settings:
#

# Protect files and directories from prying eyes.
<Files ~ "(\.(inc|module|pl|sh|sql|theme|engine|xtmpl)|Entries|Repositories|Root|scripts|updates)$">
  Order deny,allow
  Deny from all
</Files>

# Set some options.
Options +ExecCGI -Indexes
Options +ExecCGI +FollowSymLinks

# Customized error messages.
ErrorDocument 404 /index.php

# Set the default handler.
DirectoryIndex index.php

# Override PHP settings. More exist in sites/default/settings.php, but
# the following cannot be changed at runtime. The first IfModule is
# for Apache 1.3, the second for Apache 2.
<IfModule mod_php4.c>
  php_value magic_quotes_gpc                0
  php_value register_globals                0
  php_value session.auto_start              0
</IfModule>

<IfModule sapi_apache2.c>
  php_value magic_quotes_gpc                0
  php_value register_globals                0
  php_value session.auto_start              0
</IfModule>

# Reduce the time dynamically generated pages are cache-able.
<IfModule mod_expires.c>
  ExpiresByType text/html A1
</IfModule>

# Various rewrite rules.
<IfModule mod_rewrite.c>
  RewriteEngine on

  # Modify the RewriteBase if you are using Drupal in a subdirectory and
  # the rewrite rules are not working properly.
  #RewriteBase /drupal

  # Rewrite old-style URLs of the form 'node.php?id=x'.
  #RewriteCond %{REQUEST_FILENAME} !-f
  #RewriteCond %{REQUEST_FILENAME} !-d
  #RewriteCond %{QUERY_STRING} ^id=([^&]+)$
  #RewriteRule node.php index.php?q=node/view/%1 [L]

  # Rewrite old-style URLs of the form 'module.php?mod=x'.
  #RewriteCond %{REQUEST_FILENAME} !-f
  #RewriteCond %{REQUEST_FILENAME} !-d
  #RewriteCond %{QUERY_STRING} ^mod=([^&]+)$
  #RewriteRule module.php index.php?q=%1 [L]

  # Rewrite current-style URLs of the form 'index.php?q=x'.
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</IfModule>

# $Id: .htaccess,v 1.66 2005/03/20 19:15:00 dries Exp $


Last edited by viking2ev on Fri Dec 14, 2007 10:37 am, edited 1 time in total.

Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 92 posts ]  Go to page Previous  1, 2, 3, 4

Quick reply

 



Who is online

Users browsing this forum: bossman42 and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group