![]() |
Rewrite all 404s
Im running IPBoards 3.4.2 and I need this problem solved and they've already pretty much pointed at the webserver
<IfModule mod_rewrite.c> Options -MultiViews RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteRule \.(jpeg|jpg|gif|png)$ /public/404.php [NC,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> All sites come back as 404, what should I set on my listener/server side in the GUI to make this work |
Quote:
|
The only httpd.conf found on my server was at
/usr/local/lsws/add-ons/frontpage/conf Its totally empty Apache has never been installed on the server, this is a dedicated server I put together myself |
These are the errors Im getting with the log level set to 9
2013-01-30 10:36:12.740 [INFO] [10.1.1.156:50369-4#Techie] [REWRITE] Rule: Match '/forums/' with pattern '\.(jpeg|jpg|gif|png)$', result: -1 2013-01-30 10:36:12.740 [INFO] [10.1.1.156:50369-4#Techie] [REWRITE] Rule: Match '/forums/' with pattern '.', result: 1 2013-01-30 10:36:12.740 [INFO] [10.1.1.156:50369-4#Techie] [REWRITE] stat( /usr/local/lsws/DEFAULT/html/forums ) failed 2013-01-30 10:36:12.740 [INFO] [10.1.1.156:50369-4#Techie] [REWRITE] stat( /usr/local/lsws/DEFAULT/html/forums ) failed 2013-01-30 10:36:12.740 [INFO] [10.1.1.156:50369-4#Techie] [REWRITE] Source URI: '/forums/' => Result URI: '/index.php' 2013-01-30 10:36:12.740 [INFO] [10.1.1.156:50369-4#Techie] [REWRITE] Last Rule, stop! 2013-01-30 10:36:12.836 [INFO] [10.1.1.156:50369-5#Techie] [REWRITE] Rule: Match '/forums' with pattern '\.(jpeg|jpg|gif|png)$', result: -1 2013-01-30 10:36:12.836 [INFO] [10.1.1.156:50369-5#Techie] [REWRITE] Rule: Match '/forums' with pattern '.', result: 1 2013-01-30 10:36:12.836 [INFO] [10.1.1.156:50369-5#Techie] [REWRITE] stat( /usr/local/lsws/DEFAULT/html/forums ) failed 2013-01-30 10:36:12.836 [INFO] [10.1.1.156:50369-5#Techie] [REWRITE] stat( /usr/local/lsws/DEFAULT/html/forums ) failed 2013-01-30 10:36:12.836 [INFO] [10.1.1.156:50369-5#Techie] [REWRITE] Source URI: '/forums' => Result URI: '/index.php' 2013-01-30 10:36:12.836 [INFO] [10.1.1.156:50369-5#Techie] [REWRITE] Last Rule, stop! |
looks like native LSWS vhost setup. are you able to request a simple phpinfo page?
|
like any php?
You thinking PHP mod rewrite isn't enabled maybe? |
Quote:
|
v4.2.2, native litespeed server and vhost config.
seems like the same problem i get. first of all the rewrite rules (joomla default rewrite rules): Code:
RewriteEngine OnQuote:
Quote:
Any ideas what i'm doing wrong? |
Code:
now to the interesting parts. if i use .htaccess the rewrite rules work. if i use litespeed nativ rewrite settings under virtual hosts -> rewrite the rules result in 404s.refer apache document: http://httpd.apache.org/docs/current...d_rewrite.html for these rules, I think RewriteRule .* index.php [F] --> RewriteRule .* /base/index.php [F] RewriteRule .* index.php [L] --> RewriteRule .* /base/index.php [L] and comment out #RewriteBase /base/ should work under virtual host |
| All times are GMT -7. The time now is 06:54 AM. |