Redirect Problem

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

Hi, I have a question about redirecting any page with certain words in
the url.  For example, we have many pages that have sitemap.html at the
end of the url, but the actual page we want is site-map.html (notice
the addition of the dash).  It would take a long time to add a redirect
to all our pages like this, so we want to redirect any page that ends
in "sitemap.html" to the same exact url except with "site-map.html" at
the end.

Any suggestions?

Re: Redirect Problem

On 21 Nov 2005 14:05:05 -0800, put finger to
keyboard and typed:

Quoted text here. Click to load it

If you've got the ability to alter the server configuration settings,
either because you run it and control the configuration yourself or
because your hosting provider allows you to do so with .htaccess, then
RedirectMatch will do the job.

-- - a user-contributed
directory of contact information for faceless organisations.

Re: Redirect Problem

RedirectMatch looks good, but I'm afraid I'm pretty ignorant when it
comes to server config stuff.  I do have access to the server.  What
file do I place this in and do I need to include anything?  Also, if I
wanted to change any url to the exact same url with a different ending,
what exactly would be the syntax?

For example,
changes to

Thanks for your help.

Re: Redirect Problem

Oops, brand new problem.  As I looked into RedirectMatch, I realized it
probably won't work because we do not have an apache web server.  Any
other suggestions?

Re: Redirect Problem


Quoted text here. Click to load it

Then you will need to contact your host.

Quoted text here. Click to load it /

Mark Parnell

Site Timeline