By zaboomafoozarg on
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
The path module will do
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).
Also path auto module
Using the path auto module you can determine a default alias, for example the title of the content.
path, pathauto and global redirect modules
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/2to/about. I wrote about Global Redirect some time back at http://drupal.org/node/114896#comment-195940Thanks for the link to
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.
Redirecting old URLs to pages that have moved offsite
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.
I don't know of any module
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
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.