#1  
Old 17th March 2009, 14:22
keyvan keyvan is offline
Junior Member
 
Join Date: Feb 2009
Posts: 12
Thanks: 2
Thanked 0 Times in 0 Posts
Default Mod_Rewrite working too well?

Hi,

Finally got everything working on my SUSE11 ISPConfig setup with mod_rewrite.

but now it looks like I can't access files that are not going through the rewrite engine.

For example I can't access images or CSS files (word press)
If I enter the URL to an image it just takes me to the unformated front page, no images, no css.

This is what I have in the Apache Directives box.


Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Reply With Quote
Sponsored Links
  #2  
Old 18th March 2009, 18:49
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Have you tried

Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase   /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
keyvan (19th March 2009)
  #3  
Old 19th March 2009, 17:53
keyvan keyvan is offline
Junior Member
 
Join Date: Feb 2009
Posts: 12
Thanks: 2
Thanked 0 Times in 0 Posts
 
Smile

Hi,

Thanks, that worked.
At first that didn't work because I was putting those lines directly in the vhost file instead of the Apache Directives.

The error message was 'can't use Rewrite base here' so i thought that would apply everywhere.

Restored backup of vhost file and all works fine.

Thanks

Keyvan
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
fail2ban not working linuxwannabe Installation/Configuration 1 25th January 2009 06:09
su not working KenKnight HOWTO-Related Questions 9 17th September 2008 14:36
DNS stop working MZH General 3 22nd February 2008 11:10
spamassassin stop working after woody to sarge update shark_tico Server Operation 1 19th October 2006 14:01
ftp not working pesja Installation/Configuration 3 17th July 2006 12:37


All times are GMT +2. The time now is 17:11.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.