PHP Scripts Development » General Web Development Forum

How can I make subdomain in PhpFox script?

(4 posts)

Tags:

Great offers not only for geeks!


  1. 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]

    Posted 3 weeks ago #
  2. 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

    Posted 3 weeks ago #
  3. 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?

    Posted 3 weeks ago #
  4. 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"

    Posted 3 weeks ago #

RSS feed for this topic

Reply

You must log in to post.