Forum Moderators: phranque
I new to .htacess rewrite, but I managed to make it work for my site. Anyways, my URL's all have + signs between the titles.. example
[somesite.com...]
I was wondering if there was a way to have dashes instead of + signs?
either - or /
any help would be great, thanks!
Here is the code I'm using:
RewriteEngine on
RewriteRule ^(.+)Article([0-9]+)\.html(/)?$ articleDetail.php?id=$2&title=$1
RewriteRule ^(.+)\.html(/)?$ $1.php
<a href="<?php echo stripslashes(urlencode($title));?>+Article<?php echo $id?>.html"><?php echo stripslashes($title);?>...</a>
I also just learned that Search engines don't read the '+' signs, they actually convert them to %20 meaning a space... this is not good when they come around to reindex my site, none of my urls will work.
Anyone, anyone at all, how would I fix this problem!?!
Regards,