|
|
#1 |
![]() Join Date: Sep 2004
Location: Oregon
Posts: 21
![]() |
I have read some posts on this board about people being hosted on a sever with Register globals turned on and Mambo works better with register globals off.
I had the same problem and my ISP said he could not turn them off with out changing the whole sever set up and it would mess up his c-panels. I did some reasearch and found out you can turn Register Globals off in your local directory with the .htaccess file, below is the .htaccess file code to turn off Register globals in mambo. RewriteEngine On # Uncomment following line if your webserver's URL # is not directly related to physival file paths. # Update YourMamboDirectory (just / for root) # RewriteBase /YourMamboDirectory # # Rules # RewriteRule ^content(.*) index.php RewriteRule ^component/(.*) index.php php_flag register_globals off Order allow,deny Allow from all If you are not using SEF URLs just create a .htaccess file with the below code and put it in your main mambo directory php_flag register_globals off Order allow,deny Allow from all |
|
|
|
|
|
#2 |
![]() Join Date: Nov 2004
Location: Montpelier, VT
Posts: 1
![]() |
Worked great thanks!!!
|
|
|
|
|
|
#3 |
![]() Join Date: Jul 2004
Posts: 129
![]() |
I added the lines to my .htaccess as suggested and it didn't work. I was getting an error 500 Internal Service Error. Here is a copy of my file. The lines I added are in bold at the bottom.
Code:
# $Id: htaccess.txt,v 1.10 2003/12/22 10:37:29 rcastley Exp $
#
# htaccess file for SEF
# @package Mambo Open Source
# @Copyright (C) 2000 - 2003 Miro International Pty Ltd
# @ All rights reserved
# @ Mambo Open Source is Free Software
# @ Released under GNU/GPL License : http://www.gnu.org/copyleft/gpl.html
# @version $Revision: 1.10 $
#
# mod_rewrite in use
#
RewriteEngine On
# Uncomment following line if your webserver's URL
# is not directly related to physival file paths.
# Update YourMamboDirectory (just / for root)
RewriteBase /mos
#
# Rules
#
RewriteRule ^content(.*) index.php
RewriteRule ^component/(.*) index.php
# Added this section for SEF Advance
# mod_rewrite in use
#
RewriteEngine On
# Uncomment following line if your webserver's URL
# is not directly related to physival file paths.
# Update YourMamboDirectory (just / for root)
# RewriteBase /YourMamboDirectory
#
# Rules
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php
php_flag register_globals off
Order allow,deny
Allow from all
|
|
|
|
|
|
#4 |
![]() Join Date: Jan 2004
Posts: 8
![]() |
Try adding each line one at a time and see which one is breaking it.
|
|
|
|
|
|
#5 | |
![]() Join Date: Nov 2004
Posts: 59
![]() |
Quote:
Any advice would be appreciated. \m/ |
|
|
|
|
|
|
#6 |
![]() Join Date: Aug 2004
Location: Hack City, Earth.
Posts: 1,062
![]() |
It is possible that your hoster will not allow you to change options on Apache level in the httpd.conf.
You will need "AllowOverride Options" or "AllowOverride All" privileges to do so. It can also be restricted in the php.ini settings. The latter is not likely the problem. I think the first. Ask your hoster.
__________________
These forum moderators keep removing my sig! Freedom of mind and speech is not appreciated over here. |
|
|
|
|
|
#7 | |
![]() Join Date: Nov 2004
Posts: 59
![]() |
Quote:
|
|
|
|
|
|
|
#8 |
![]() Join Date: Jul 2004
Posts: 129
![]() |
Well, I got my issue resolved after contacting my web host. Since they use suPHP, I needed to control this aspect using php.ini.
In my case, they had me create a file called php.ini with the following line: register_globals = 0 I then added a line to my .htaccess which pointed to the php.ini file. suPHP_ConfigPath /home/YourcPanelName/public_html Hope that helps. |
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|