4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 mod_rewrite, redirect to dynamic location
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
bradrob
Junior WebHelper
Junior WebHelper


Joined: 09 Jan 2004
Posts: 1

PostPosted: Fri Jan 09, 2004 10:15 am (13 years, 11 months ago) Reply with QuoteBack to Top

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
OfflineView User's ProfileFind all posts by bradrobSend Personal MessageVisit Poster's Website
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot edit your posts in this forum.
You cannot delete your posts in this forum.
You cannot vote in polls in this forum.


Page generation time: 0.049804 seconds :: 17 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme