Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Novice htaccess question

Status
Not open for further replies.

gripper111

IS-IT--Management
Jun 28, 2011
15
US
Hi fellow board members,

I am a complete rookie at htacess issues. Here is the question

I have a webhost reseller account and I have a website blog on an account on this host.

I get the following error
"Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set"......

I contacted the hosting company who tells me that safe mode is off and that because of this being on reseller machine they cannot turn off open_basedir.

They did not say but I am assuming it is for security purposes. On the one site can I override this setting using an entry in the htaccess file?

If so what do I add.

I thank you in advance for you assistance

 
Hi

As [tt]open_basedir[/tt]'s changeability is [tt]PHP_INI_ALL[/tt], theoretically you can use [tt]php_value[/tt] in your .htaccess :
Code:
php_value open_basedir none
If not works, that means it is only settable with [tt]php_admin_value[/tt], but that is allowed only in httpd.conf ( or its equivalent ).


Feherke.
 
Hi Feherke

Thanks for the info. I have never touch an .htaccess file before.

Below is my current file entries. So I guess I need to know where and what specifically to add to this file to test it

Thanks

RewriteCond %{REQUEST_FILENAME} -f [NC,OR]
RewriteCond %{REQUEST_FILENAME} -d [NC]
RewriteRule .* - [L]
RewriteEngine On
RewriteRule sitemap.xml sitemap_xml.php
RewriteRule links([0-9]*).html virtual_page.php?page=links&page_number=$1
RewriteRule links.html virtual_page.php?page=links
RewriteRule aboutus.html virtual_page.php?page=aboutus
RewriteRule contact.html virtual_page.php?page=contact
RewriteRule privacy.html virtual_page.php?page=privacy
RewriteRule rss.html rss.php
RewriteRule sitemap/([0-9]*) virtual_page.php?page=sitemap&page_number=$1
RewriteRule sitemap$ virtual_page.php?page=sitemap
RewriteRule archives/([0-9]*)-([0-9]*)/([0-9]*) virtual_page.php?page=archives&archive_date=$1-$2&page_number=$3
RewriteRule archives virtual_page.php?page=archives
RewriteRule tags/(.*) virtual_page.php?page=tags&tag=$1
RewriteRule tags virtual_page.php?page=tags
RewriteRule categories/([0-9]*)/([0-9]*) virtual_page.php?page=categories&category_id=$1&page_number=$2
RewriteRule categories virtual_page.php?page=categories
RewriteRule posts/(.*).html$ pages.php?keyword=$1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top