URL_rewrite help!

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
oscardog
Forum Contributor
Posts: 245
Joined: Thu Oct 23, 2008 4:43 pm

URL_rewrite help!

Post 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
oscardog
Forum Contributor
Posts: 245
Joined: Thu Oct 23, 2008 4:43 pm

Re: URL_rewrite help!

Post by oscardog »

Infact i've just tried the above code and it didn't even work, now i'm totally lost.

Oscardog
Post Reply