Page 1 of 1

URL_rewrite help!

Posted: Sat Oct 10, 2009 9:42 am
by oscardog
So I have the following code, which is close to what I want:

Code: Select all

Options +FollowSymLinks
RewriteEngine on
RewriteRule article/content/(.*)/ article.php?content=$1
 
the url would look like
And the above code woukld output the url as:
Which is sort of close, but instead I want it to look like:
And I have absolutely no idea how to seperate the content value and put the first part(html in this case, but there are other ones like php-the-basics).

Anyway, I think it's fairly easy, anyone?

Thanks,

Oscardog

Re: URL_rewrite help!

Posted: Sat Oct 10, 2009 11:36 am
by oscardog
Infact i've just tried the above code and it didn't even work, now i'm totally lost.

Oscardog