Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

mod_rewite

Posted on 2006-11-28
4
Medium Priority
?
246 Views
Last Modified: 2012-05-05
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^.*$ index.php [L]

I would like to exclude that rule from /x/*
and
/b/*

I have tried putting:
RewriteRule ^/b/(.*)$ /b/$1 [L]

above it but with no avail.
0
Comment
Question by:mnb93
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 13

Accepted Solution

by:
rhickmott earned 1500 total points
ID: 18035377
You could try a system like this

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !^b/.*$
RewriteCond %{REQUEST_URI} !^x/.*$
RewriteRule ^.*$ index.php [L]

take careful note of where you place /'s and where you dont!

RewriteRule ^.*$ index.php [L] for example if used within a sub folder will direct say http://www.domain.com/folder1/folder2/ to http://www.domain.com/folder1/index.php

Where as

RewriteRule ^.*$ /index.php [L] will direct the same url to to http://www.domain.com/index.php

0
 
LVL 5

Author Comment

by:mnb93
ID: 18041491
Sorry your method doesn't work.
0
 
LVL 5

Author Comment

by:mnb93
ID: 18041533
FIX:

RewriteCond %{REQUEST_URI} !^/b$ [NC]
RewriteCond %{REQUEST_URI} !^/e$ [NC]

RewriteCond %{REQUEST_URI} !^/b/.*$ [NC]
RewriteCond %{REQUEST_URI} !^/e/.*$ [NC]
0
 
LVL 13

Expert Comment

by:rhickmott
ID: 18041621
/'s are such a pain in Mod Rewrites :)

Glad you got it sorted
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question