maya_hot posted on 2008-07-24 07:35:07 #
How can I make subdomain in PhpFox script?
.htaccess file:
ErrorDocument 403 /index.php?do=/public/error/403/
ErrorDocument 404 /index.php?do=/public/error/404/
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/file/.*
RewriteCond %{REQUEST_URI} !^/install/.*
RewriteCond %{REQUEST_URI} !^/design/.*
RewriteCond %{REQUEST_URI} !^/plugins/.*
RewriteRule ^index.php(/.*)$ /index.php?do=$1 [L]
RewriteCond %{REQUEST_URI} !^/file/.*
RewriteCond %{REQUEST_URI} !^/install/.*
RewriteCond %{REQUEST_URI} !^/design/.*
RewriteCond %{REQUEST_URI} !^/plugins/.*
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} !^/robots.txt
RewriteCond %{REQUEST_URI} !^/favicon.ico
RewriteRule ^(.*)$ /index.php?do=/$1 [L]
The most popular forum posts:
Comments / discussions
Olaf posted on 2008-07-24 08:29:32 #
Hi,
this is not related to phpfox, you need to change some settings in you apache configuration. Check the Wordpress MU site, they have a great to tutorial about what you need to change. Sorry you can't do that in the .htaccess file, you need access to the httpd.conf file
maya_hot posted on 2008-07-26 19:50:17 #
how I can find the httpd.conf file?
Config.php
<?php
global $_CONF;
$_CONF = array();
$_CONF['db']['host'] = '********';
$_CONF['db']['user'] = '********';
$_CONF['db']['pass'] = '********';
$_CONF['db']['name'] = '********';
$_CONF['db']['prefix'] = 'phpfox_';
$_CONF['path'] = dirname(dirname(dirname(__FILE__))).'/';
$_CONF['domain'] = '************';
$_CONF['host'] = $_CONF['domain'].'/';
$_CONF['http'] = 'http://';
$_CONF['https'] = 'http://';
$_CONF['rewrite_engine'] = true;
$_CONF['path_translated'] = true;
?>
Please help me?
Olaf posted on 2008-07-27 07:31:22 #
do you have administration rights on that server?
If not, you need to ask your hosting provider if he is able to support a "wildcard domain"