homepage Welcome to WebmasterWorld Guest from 54.225.57.156
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
mod rewrite - Check Code
woldie




msg:1506989
 12:17 pm on Jan 30, 2005 (gmt 0)

Hi,

I'm trying to use mod rewrite to achieve the following:

FROM: [domain.com...]

TO: [domain.com...]

I've already written some code, but not quite sure if this is correct.

RewriteEngine On
RewriteRule ^/dir/([0-9]+)\/index.php
[domain.com...] [L]

Am I on the right track?

Cheers :o)

 

dcrombie




msg:1506990
 12:35 pm on Jan 30, 2005 (gmt 0)

This should work a bit better:

RewriteEngine On  
RewriteRule ^dir/([0-9]+)/index\.php /page.php?id=$1

;)

woldie




msg:1506991
 1:02 pm on Jan 30, 2005 (gmt 0)

Thanks dcrombie

Much appreciated for your help.

That works :o)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved