swan_tower: (web)
[personal profile] swan_tower
Is there any convenient way to do a mass-redirect on various URLs? Basically, I want to simplify the directory structure of my site, such that everything which used to be swantower.com/marie/X becomes swantower.com/X. But people may have bookmarked particular links, and I'd like them to be automatically redirected when they try the old URL. What I don't know is whether there's any simple method for achieving this. Help?

Date: 2010-03-09 07:48 pm (UTC)
ckd: (cpu)
From: [personal profile] ckd
Depends on your server setup; with Apache httpd, this would be a fairly simple one-liner using RedirectMatch.

Untested:
RedirectMatch permanent /marie(/.*) http://swantower.com$1

Date: 2010-03-09 07:51 pm (UTC)
From: [identity profile] jsbangs.wordpress.com (from livejournal.com)
Yup, this is the way to do it. However, depending on your hosting company, it may be difficult to convince them to do this for you.

Date: 2010-03-09 07:53 pm (UTC)
From: [identity profile] swan-tower.livejournal.com
Since my webserver lives in my brother's basement, I'd rate my odds as pretty good. :-)

Profile

swan_tower: (Default)
swan_tower

January 2026

S M T W T F S
    1 23
456 78 910
11121314151617
18192021222324
25262728293031

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 9th, 2026 09:10 am
Powered by Dreamwidth Studios