Apache Server configuration support - Exchancing characters in .htacess

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > October 2007 > Exchancing characters in .htacess





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Exchancing characters in .htacess
Frank Ehrlacher

2007-10-15, 7:25 pm

Hi,
just another problem - I wanna exchange 1 oder more single characters using
htaccess

example:
site_1.htm =>seite-1.htm
the same thing I do in php using str_replace ("_", "-", "site_1.htm")

But I have to do it in .htaccess - is there any chance?

I thought about:
redirect seeother (.+)_(.+)_(.+).htm $1-$2-$3.htm

- but I don't know how often the "-"-type appears in every URL.

Any ideas, suggestions, solutions...?

Thanks!

Frank

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com