Anyone know how to rewrite the spaces (%20) in a URL to convert them to hypens (-).
For example, http://www.acme.com/widget 101.shtml to http://www.acme.com/widget-101.shtml
AND
http://www.acme.com/whats new/widget.shtml
to
http://www.acme.com/whats-new/widget.shtml
Your help is appreciated!
Mod-Rewrite for %20
Moderator: General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Maybe just real spaces?
Code: Select all
RewriteRule [\ ] --
curseofthe8ball
- Forum Commoner
- Posts: 73
- Joined: Sun Jun 01, 2003 12:33 am
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Err.... that was itcurseofthe8ball wrote:Not sure I follow that comment.
Do you have some code that I could try in the .htaccess file?
Code: Select all
RewriteEngine On
RewriteRule [\ ] --
curseofthe8ball
- Forum Commoner
- Posts: 73
- Joined: Sun Jun 01, 2003 12:33 am