![]() |
htaccess help needed
I'm having problems with a script I bought. This is on a freebsd 8.1 machine with apache2.2.17, php5.3.3, mysql5.1.52, and the php5-extensions installed.
The script seems to work fine on linux, and linux VPS. It seems I'm their only freebsd customer so far. Apparently one other guy had the same issue with his htaccess on a VPS but they fixed his .htaccess file. htaccess works fine on this machine, my other sites are using it, so I'm not sure why I'm having a problem with this. Any help is appreciated :) <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)/$ $1 [L,R=301] RewriteCond %{REQUEST_URI} ^system.* RewriteRule ^(.*)$ /index.php/$1 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] </IfModule> <IfModule !mod_rewrite.c> # Without mod_rewrite, route 404's to the front controller ErrorDocument 404 /index.php </IfModule> |
what is the problem? what is it not doing?
is mod rewrite on on your server? seems sending errordocument 404 to index.php may make it hard to see if its not turned on |
Quote:
mod_rewrite is indeed installed, I am using it on a wordpress blog. If I put gibberish in the .htaccess file then I get an internal server error. |
Quote:
Code:
ErrorDocument 404 /index.php Do you get a 404 error page? Is the script in a site root, or in a directory? If your script is in a directory you could try putting the directory name in front of the /index.php like so: Code:
RewriteCond %{REQUEST_URI} ^system.* |
Quote:
Quote:
Quote:
welcome to gfy :thumbsup |
any other ideas? I'm really stumped on this.
|
I tried installing the script on my amerinoc shared hosting. The script worked for the most part but I had an mysql error on the sidebar.
Seems to be related to the htaccess issue on the freebsd dedicated server, but mod_rewrite is enabled and running. any ideas? :) |
i dont know much but u should try with freeelancer, they know a lot.
|
add this
Options +FollowSymLinks before RewriteEngine On |
Quote:
|
I wish i had skills like this. Never to late to learn i guess :pimp
|
Quote:
|
it would be more helpful if we knew something about the script/cms to make the modrewrite to work.
remember apache 1.3.x and 2.x.x has a diff rewrite system, some rules will work on 2.x.x and not in 1.3.x |
All times are GMT -7. The time now is 01:28 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123