Syndicate

Feed

Simple redirect using the path module

You can use the path module to force a simple redirect in Drupal. Say you have a Drupal site with only one blog. When people access the page myWebsite.com/blog, you may actually want them to see the page at myWebsite.com/blog/x where x is the ONE blogger user hi-dee. (The page at myWebsite.com/blog has for title Blogs.) A simple redirect is achievable using the path module, part of the default Drupal distribution. Go to the page myWebsite.com/admin/build/path/add, and provide a new URL alias like so — replacing the number 1 with the uid of your lonesome blogger:

Adding a URL alias

This will work in Drupal 5 and Drupal 6. You may wonder if this is 'by design'. You're specifying an existing system path as 'Path alias', and Drupal thinks that this Drupal path is indeed an alias. In my opinion, this is more of a side effect than a bug — and it is a side effect you can take advantage of whenever you wish to 'condemn' certain Drupal roads to redirect your visitors to another page.

Last edited by Caroline Schnapp about 9 years ago.

Comments

More content capacity to your site.

We provide you with significant information, many thanks. See me in connection with the feasible to save the following as well as see my buddies for help. More capacity to your site.

When people access the page

When people access the page myWebsite.com/blog, you may actually want them to see the page at myWebsite.com/blog/x where x is the ONE blogger user hi-dee. (The page at myWebsite.com/blog has for title Blogs.) A simple redirect is achievable using the path module, part of the default Drupal distribution. Go to the page myWebsite.com/admin/build/path/add, and provide a new URL alias like so — replacing the number 1 with the uid of your lonesome blogger:
http://e-papierossy.com.pl/en/e-papierosy/76-e-papierosy-gombit-423456.html
http://e-papierossy.com.pl/en/e-papierosy/80-e-papierosy-gambit-123445.html

This is one interesting blog

This is one interesting blog you have come up with. Looking forward to read more.

Great people, great for you.

Great people, great for you. Thanks for sharing.