this is how my .htaccess looks like:
#AddType application/x-httpd-php5 .php
RewriteEngine on
#Options +FollowSymlinks
RewriteBase /
RewriteBase /jobs_sites
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/$ index.php?page=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/([^/]+)/$ index.php?page=$1&id=$2 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/$ index.php?page=$1&id=$2&extra=$3 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ index.php?page=$1&id=$2&extra=$3&referer=$4 [L]
ErrorDocument 404 /page-unavailable/
.htacess admin:
#AddType application/x-httpd-php5 .php
RewriteEngine on
#Options +FollowSymlinks
RewriteBase /admin
RewriteBase /jobs_sites/admin
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule . index.php [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/$ index.php?page=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/([^/]+)/$ index.php?page=$1&id=$2 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/$ index.php?page=$1&id=$2&extra=$3 [L]
ErrorDocument 404 /page-unavailable/
From cpanel. Apache version: Apache version 2.2.15
config.envs:
// live (http://supremetechnical.com/jobs_sites)
$__instances['live'] = array(
'prefix' => 'supremetechnical.com',
'db_host' => 'localhost',
'db_port' => 3306,
'db_user' => 'supremet_supreme',
'db_password' => 'xxxxxx',
'db_name' => 'supremet_jobs',
'db_prefix' => '',
'app_url' => 'http://supremetechnical.com/jobs_sites',
'ini_error_reporting' => E_ALL,
'ini_display_errors' => 'On',
'location' => 'online',
'environment' => 'prod',
'rewrite_mode' => 'apache_mod_rewrite'
);
thanks for your reply..but i still need to come back later.
Last edited by Reggy (2010-06-29 10:21:22)