I have a client that wants her old website converted into drupal. However, she told me that people have certain pages bookmarked. Obviously she doesn't want those links to be broken. Is there a module that would allow me to put in the old URL to redirect to the new one without the user knowing?

Thanks,

Eric

Comments

ScoutBaker’s picture

The Core Path module does this.

You might also want to look at PathAuto for automating the creation of URL Aliases. There's also the Path Redirect module that may be useful.

ridolfidesigns’s picture

Neither of those are what I want. At least I don't think they are. I have never done this before.

What I need, is for the links from the old site to go to the urls on the new site. The urls on the old site are different from the urls on the new site. The old site is NOT a drupal site and it does NOT use clean urls. The new site does use clean urls. So I need to be able to say this old url needs to go to some new url. Is there a module that does this or do I need to look into something else?

Do the modules mentioned do this? I checked out the path redirect module and it looks like it only redirects urls from the drupal path to some other url. I need it the other way around. I need it coming from another url to a drupal path.

For example: http://oldsite.com/index.php?something=blog needs to now go to http://newdrupalsite.com/blog. The reason is because people have http://oldsite.com/index.php?something=blog bookmarked. So I don't want that link to be broken because the new blog url will be http://newdrupalsite.com/blog.

Thanks,

Eric

vipin.mittal18’s picture

agree with ScoutBaker
pathauto will keep ur existing url smae and will also create ur desired url.
go with pathauto module.

ridolfidesigns’s picture

So this isn't possible?

ashishn.cms’s picture

Use Rewrite rules in .htaccess file for redirect old url to new url.

cmsquickstart’s picture

Your first option is to create the URL's on the new Drupal site to match the url's from the old site.

You can do this by using clean url's and enabling the path module. When you create new content in Drupal you'll then have an option called URL Path Setting - you can type in the old site url here.

If you plan to create new url's then you can use the two modules below:

Path Redirect
http://drupal.org/project/path_redirect

Global Redirect
http://drupal.org/project/globalredirect

You can also use the path auto module to automatically create your urls based on the node title, category, etc...

cmsquickstart’s picture

Sorry, I just read your follow up comment that you are going to create all new url's and that you need to redirect your old site url's to the new site url's. I just tested and verified that this is possible using Path Redirect.

ridolfidesigns’s picture

Yeah, I know. I just couldn't figure out how it worked exactly. I have it figured out now.

Thanks