Got more questions? Find advice on: ASP | SQL | XML | Windows
in Search
Welcome to RegexAdvice Sign in | Join | Help

Browse by Tags

All Tags » regex » htaccess
  • Replacing all spaces with an underscore in .htaccess?

    I can't do this serverside because it has to parse in the .htaccess first. Basically, I have the following string: RewriteRule ^([A-Za-z0-9_]+)$ index.php?word=$1 which makes: mysite.com/this go to mysite.com/index.php?word=this But, if someone puts in mysite.com/what is this it will error out.  I want it to convert all the ...
    Posted to Construction Advice (Forum) by FuzzzyLogik on December 14, 2006