عايزه أعمل subdomain?
لدي سكربت يعمل دومين فرعي يهذه الطريقة
www.mydomain/user
عايزاه يعمل بالطريقة
user.mydomain
----
ملف htaccess:
RewriteEngine On
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]
RewriteEngine onملف config.php:
<?php global $_CONF; $_CONF = array(); $_CONF['db']['host'] = 'localhost'; $_CONF['db']['user'] = ''; $_CONF['db']['pass'] = ''; $_CONF['db']['name'] = ''; $_CONF['db']['prefix'] = ''; $_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; ?>