Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-10-2008, 12:23 AM   PM User | #1
mbannonb
New Coder

 
Join Date: Sep 2004
Posts: 60
Thanks: 1
Thanked 0 Times in 0 Posts
mbannonb is an unknown quantity at this point
mod_rewrite problem - replacing chars issue

Hi,

I want to replace anything that is not an alphanumeric character, forward slash, period, underscore or hyphen with a hyphen.

This works:

RewriteRule ^(.*)[^/.a-zA-Z0-9_\-](.*)$ $1\-$2

However, when I add an [N] flag to the end of it in order to get more than one occurence, it crashes the server.

Any ideas why?
mbannonb is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:32 AM.


Advertisement
Log in to turn off these ads.