mucky1215
10-26-2007, 10:35 AM
Hello,
I've managed to make friendly urls, but there's a slight problem with it heres an example what i get:
http://www.gamerspot.co.uk/news_area/article/view_article/newsID/1/title/PS3%20Caused%20GTA:%20IV%20Delay!/
but as you can see, it displays the news title with "%20" which makes the url look messy. And what i want it to look like:
http://www.gamerspot.co.uk/news_area/article/view_article/newsID1/title/PS3-Caused-GTA:IV-Delay!/
And my .htaccess code looks like this:
Options +FollowSymLinks
RewriteEngine on
RewriteRule view_article/newsID/(.*)/title/(.*)/ view_article.html?newsID=$1&title=$2
RewriteRule view_article/newsID/(.*)/title/(.*) view_article.html?newsID=$1&title=$2
Is there a way that would get rid of "%20" and replace it with either "-" or "+" ?
Ben
I've managed to make friendly urls, but there's a slight problem with it heres an example what i get:
http://www.gamerspot.co.uk/news_area/article/view_article/newsID/1/title/PS3%20Caused%20GTA:%20IV%20Delay!/
but as you can see, it displays the news title with "%20" which makes the url look messy. And what i want it to look like:
http://www.gamerspot.co.uk/news_area/article/view_article/newsID1/title/PS3-Caused-GTA:IV-Delay!/
And my .htaccess code looks like this:
Options +FollowSymLinks
RewriteEngine on
RewriteRule view_article/newsID/(.*)/title/(.*)/ view_article.html?newsID=$1&title=$2
RewriteRule view_article/newsID/(.*)/title/(.*) view_article.html?newsID=$1&title=$2
Is there a way that would get rid of "%20" and replace it with either "-" or "+" ?
Ben