Hey, everybody. I've just been using the wonderful HTML Export module, and I would like the html versions of my nodes to be the 'default' ones that my regular site pulls up (rather than pointing to the longer, wonkier URL of the html pages). Is there any way to redirect the regular Drupal-version nodes to the html versions, hopefully without having to code each one separately? Or, should I just hand-code links to the html nodes from menus (although the url still won't be very good)?

I'd appreciate any input anyone has. Thanks.

Comments

vm’s picture

you should create path alias the match the way the HTML pages were originally set up.

core comes with path.module and to automate path tasks get the pathauto.module

what url aliases do is take yorusite.com/node/1 and allows you to rename it to whatever you want.

ie old page = yoursite.com/thisismypage.html
you imported this to yoursite.com/node/1

alias yoursite.com/node/1 = yoursite.com/thisismypage.html
If this is too much trouble for you investigate 301 redirects?

heinlein99’s picture

Yeah, I've got pathauto but didn't consider being able to use it for this purpose.

Thanks, I'll look into this.