Solved

mod_rewite

Posted on 2006-11-28
4
239 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
  • 2
  • 2
4 Comments
 
LVL 13

Accepted Solution

by:
rhickmott earned 500 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Magento error 9 67
Google Crawl Errors Producing 404 Errors 4 74
file path 14 63
Configure a Local PHP Interpreter for Phpstorm 2 119
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now