Gossamer Forum
Home : General : Internet Technologies :

mod_rewrite

Quote Reply
mod_rewrite
I am far from an expert in mod_perl, but Alex gave me a nice bit of code that I can place in a .htaccess file, and it will redirect people from http://www.ace-installer.com/page.html to http://new.ace-installer.com/page.html. The problem is, I have a couple of directories that I don't want this done with... e.g;

http://www.ace-installer.com/demo doesn't need to be redirected to http://new.ace-installer.com/demo.

Does anyone have any suggestions on what to change/add in the below codes?

Code:
RewriteEngine On
RewriteRule (.*) http://new.ace-installer.com/$1 [R,L]

TIA

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!

Last edited by:

Wil: Dec 2, 2003, 1:18 PM
Quote Reply
Re: [Andy] mod_perl In reply to
I'm not sure which part of the question relates to mod_perl but as far as the rest of the question is concerned, you will need to change the (.*) regex so it only matches the directories you want.
Quote Reply
Re: [Recall] mod_perl In reply to
Sorry.. I meant mod_rewrite... sorry Blush

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!