RewriteRule
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > RewriteRule




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    RewriteRule  
Marcin Staniszczak


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-28-04 08:47 AM

Welcome

I need rewrite any URL address to http://example/index.php. For example:

http://example/foo/bar
or
http://example/foo/bar/foo2/bar2

I want rewrite to
http://example/index.php

But NOT pictures and CSS. Pictures (gif, jpeg, png) are stored in
/home/user/public_html/site/pictures and subdirectories.
CSS are stored in /home/user/public_html/site/CSS.

I find this:
RewriteRule ^/(css)/(.*)$ /home/user/public_html/site/CSS$2 [l]
RewriteRule !^/(css)/.*$ /home/user/public_html/site/index.php [l]
but it isn't work:-(

Can you help me write properly RewriteRule?

Thank you,
Marcin





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:06 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register