I’m not that good with .htaccess, so I wonder, how can I rewrite default ‘node’ part of the url to an ‘article’ for example, so that server will output ‘article/1’ instead of ‘node/1’. I need this to be done on a server side, so with the use of .htaccess only. Any guess?
Share
The Pathauto module will allow you to set customised paths like this in Drupal. It’s a must-have for Drupal (should be in Core, really). Just install and configure via the easy web-interface and you’ll be all set.
You can even have different patterns for different node types. As an example, if you had ‘page’ and ‘news’ content types, your pages could have URLs like
http://example.com/about-uswhile your news items could have urls likehttp://example.com/news/2009/05/28/news-post-title.