RewriteRule

This is a discussion on RewriteRule within the Apache Web Server forums, part of the Web Server and Related Forums category; Welcome I need rewrite any URL address to http://example/index.php. For example: http://example/foo/bar or http://...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-27-2004
Marcin Staniszczak
 
Posts: n/a
Default RewriteRule

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
 


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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:20 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0