PDA

View Full Version : VB vBlog URL rewrite on my domain?


RamdonGhai
05-16-2009, 12:44 AM
Sorry to bug you guys again! but this community is awesome every question is always instantly accurately answered.

I was wondering how I would implement a url rewrite thing....

For example, a user can access their blogs from my domain ie: www.mysite.com/Lynne493 and it'll link to their vblog page...

RamdonGhai
05-20-2009, 08:50 PM
For example, if I wanted to get to my own blog, i just visit www.mysite.com/admin and i want it to forward to:

http://mysite.com/forums/blog.php?u=1

how can i automate this? I have been doing research and it has something to do with the htaccess file?

Is there a way I can do it where theres a script called userx.php, and basically it passes the username to the script, and the script finds that username and finds the link to the blog...

basically www.mysite.com/userx.php?=GiantTreeMan

basically the php searches for that string in the sql db and finds the user number, and just pastes that into the link http://mysite.com/forums/blog.php?u=(number goes here)