Hi,
I'm trying get my short url to work but no luck so far. I'm on an Apache 2.2.3 and Centos 5.2, php 5 and mysql 5.
Here's what I have:
.htacess file:
ErrorDocument 403 /index.php?do=/public/error/403/
ErrorDocument 404 /index.php?do=/public/error/404/
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/design/.*
RewriteCond %{REQUEST_URI} !^/favicon.ico$
RewriteCond %{REQUEST_URI} !^/file/.*
RewriteCond %{REQUEST_URI} !^/include/.*
RewriteCond %{REQUEST_URI} !^/index.php$
RewriteCond %{REQUEST_URI} !^/plugins/.*
RewriteCond %{REQUEST_URI} !^/robots.txt$
RewriteCond %{REQUEST_URI} !^/site/.*
RewriteRule ^index.php(/.*)$ /index.php?do=$1 [L]
RewriteCond %{REQUEST_URI} !^/design/.*
RewriteCond %{REQUEST_URI} !^/favicon.ico$
RewriteCond %{REQUEST_URI} !^/file/.*
RewriteCond %{REQUEST_URI} !^/include/.*
RewriteCond %{REQUEST_URI} !^/index.php$
RewriteCond %{REQUEST_URI} !^/plugins/.*
RewriteCond %{REQUEST_URI} !^/robots.txt$
RewriteCond %{REQUEST_URI} !^/site/.*
RewriteRule ^(.*)$ /index.php?do=/$1 [L]
server.sett.php file:
$_CONF['rewrite_engine'] = true;
$_CONF['path_translated'] = true;
httpd.conf file:
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
RewriteEngine On
<Directory /var/www/html/>
Options Indexes FollowSymLinks MultiViews
Options +FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
With the above settings, here's what happen:
1) Only the home page loads up
2) all other pages/links doesn't work. I get a 404 error message. Here are some of the messages:
Not Found
The requested URL /login/ was not found on this server.
Apache/2.2.3 (CentOS) Server at 192.168.10.112 Port 80
Not Found
The requested URL /poll/ was not found on this server.
Apache/2.2.3 (CentOS) Server at 192.168.10.112 Port 80
Not Found
The requested URL /forum/ was not found on this server.
Apache/2.2.3 (CentOS) Server at 192.168.10.112 Port 80
However, when I change the server.sett.php to:
$_CONF['rewrite_engine'] = false;
$_CONF['path_translated'] = false;
All pages work except no short url. The short url just simply doesn't work.
What do you suggest?