By brauer on
How do I change the path to the home page for user blogs from:
eg. http://www.example.com/blog/1
to
eg. http://www.example.com/blog/username
I've seen it implemented at a few sample drupal sites, have the path module installed but can't see how I make this change so users can benefit from a more personalized blog url.
Comments
URL Aliases
You will need to set the path "blog/1" to the appropriate url alias.
1. administer > url aliases
2. add alias
3. "blog/1" to "blog/name_of_user"
Hope that helps.
-
Shane Birley
Vicious Bunny Creative
http://www.vbcreative.com
---
Shane Birley
Left Right Minds
https://www.leftrightminds.com
Quality!
Quality!
So many neat little tricks!
good idea! but how to automate?
i believe that a little script can do this at the time of user creation/registration. can you, or anyone help doing this?
TIA
// chall3ng3r //
perhaps pathauto
perhaps pathauto can do something like what you want. At least from the description it can.
-sp
---------
Drupal Best Practices Guide - My stuff Black Mountain
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide
many thanks,it worked
many thanks,
it worked just fine as required :D
// chall3ng3r //
Pathauto does exactly that
Pathauto does exactly that automatically out of the box.
--
Free Templates
ahh i get it now
I get it now.
How to alias usernames to blog paths
See previous discussion.
In my case we used wildcard DNS, mass_url and some changes in .htaccess (mod_rewrite). As a result, username.blufftontoday.com redirects to www.blufftontoday.com/blog/username, and mass_url translates that to the proper UID.
I am not using pathauto because I don't want the overhead of additional database lookups for every pageview. However, I don't have any metrics to demonstrate whether that actually is a problem.
code! code!
Can you display what it is that you did to achieve that?? Please!!??
htaccess
failed
i changed the example with my site's name but failed..
any ideas
in which directory should be the ht.accesss the "www"
My new module is made just for this
A friend of mine wanted to do the same with user/NNN links, so I wrote a module for him.
Userpath Module
Take a look.
Ben
Userpath module?
Hi,
Is this Userpath module available for Drupal 5?
I found it at: http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/userpath/
Can someone please update it otherwise?
Thanks in advance!
greetings,
Martijn