Hi, I've been trying to figure out how to use custom URL names but haven't found it yet, so I figured I'd ask here. I added an "About" page as a Page to my test site and it gets an address of /node/2. How would I configure this to show up as /about ?

I want to add numerous pages and give each an appropriate name, and would appreciate if someone could tell or link me to the relevant info about doing this.

Thanks

Comments

znation’s picture

The path module will do exactly what you want. Just install and enable it, and then type the custom path for every node you create (or edit).

nevets’s picture

Using the path auto module you can determine a default alias, for example the title of the content.

Christefano-oldaccount’s picture

To automate the path creation (and retroactively create path aliases for your nodes) use Pathauto.

I also recommend Global Redirect, which redirects the browser from /node/2 to /about. I wrote about Global Redirect some time back at http://drupal.org/node/114896#comment-195940

znation’s picture

Thanks for the link to Global Redirect! I hadn't heard of that module before, and I just installed it... it's quite nice. Now you'd never know I'm using Drupal just by looking at the URLs.

sammy-node’s picture

Hi - what systems are in place if you move a page from a Drupal site to a different domain name, but you want to keep original drupal link and redirect it to the new site? (similar, but reverse to the way that current redirects seem to be modelled). Is there a way that that Pathauto or Global Redirect could handle this?

From a seo point of view it would be nice not to waste the links when the page moves - also any bookmarks existing visitors had would still work if this could be done.

znation’s picture

I don't know of any module that does this, but for a limited number of items, you could do it by hand. Copy the page to its new location (say, http://www.foo.com/bar ), and then edit the old drupal page. Remove all the content, set the Input Format to PHP, and put

<?php
drupal_goto("http://www.foo.com/bar");
?>

as the page content. Save it. Now, whenever you try to load that page, it will redirect you immediately to the new one. This may not be the proper type of redirect ("permanently moved") that search engines want you to use, though... I haven't tried it. I do think it will work for users.