Gossamer Forum
Home : General : Internet Technologies :

mod_rewrite, redirect to dynamically created pages

Quote Reply
mod_rewrite, redirect to dynamically created pages
hiya

I'm pretty new to the mod_rewrite plugin for apache and i seem to have stumbled and could do with a helping hand if possible.

I have a website where the pages are all created dynamically from a mysql database using a content management system the file structure goes like this


1) http://www.mydomain.com/cms/cms/user1/
...........................|...............\..../........\
......................Domain...........Folders.....Username


I would like the address bar to show url number 2 when someone requests that same url, but they will be redirected to the dynamic location url1 by a jsp that will be implemented as they request the page (unless anyone knows how to redirect to a dynamically created location with mod_rewrite at the same time as implmenting the rewrite rule).

So my initial question is how can i change the url using the username as the domain.

2) http://www.user1.com


thanks for any help in advance

Brad
Subject Author Views Date
Thread mod_rewrite, redirect to dynamically created pages bradrob 4402 Jan 9, 2004, 1:47 AM
Thread Re: [bradrob] mod_rewrite, redirect to dynamically created pages
Alex 4245 Jan 9, 2004, 9:12 AM
Post Re: [Alex] mod_rewrite, redirect to dynamically created pages
bradrob 4230 Jan 9, 2004, 9:17 AM