|
|
|
|
![]() ![]() |
Oct 16 2006, 05:47 PM
Post
#1
|
|
|
Privileged Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 535 Joined: 14-February 05 From: Oslo, Norway Member No.: 3,759 |
Well, I ran into a problem. I tried to make a code that matched everything, except strings containing the word "php", "gif", "jpg" etc. I tried doing something like this, but it didn't work:
CODE ([^\b(php|gif|jpg)\b]+)$ But that works just like if I would do this: CODE ([^phgifj]+)$ That code is a part of a larger code that only works partially: CODE RewriteEngine on RewriteRule ([^\b(php|gif|jpg)\b]+)$ item.php?n=$1 Some strings, such as asd works, but fgh doesn't work. Any help for either of these problems would be greatly appreciated! As you might see, I'm no master with regex... well, not yet This post has been edited by Amezis: Oct 17 2006, 02:06 PM |
|
|
|
Oct 16 2006, 07:23 PM
Post
#2
|
|
|
Advanced Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 138 Joined: 30-September 06 From: Iasi, Romania Member No.: 30,851 |
http://www.javascriptkit.com/howto/htaccess10.shtml
see here..I think you will find what you are looking for..of course, that code must be adapted to suit your needs..but it`s easy to understand |
|
|
|
Oct 17 2006, 02:17 PM
Post
#3
|
|
|
Privileged Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 535 Joined: 14-February 05 From: Oslo, Norway Member No.: 3,759 |
It didn't help me much, but I finally found out how I could fix everything. Here's the code I'm using:
CODE RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteRule (.+)$ item.php?n=$1 |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 6th September 2008 - 07:14 PM |