Mobile app version of vmapp.org
Login or Join
Shelley277

: Rewrite URL for articles using htaccess I've had a look through several other questions to see if I could get this working but have had no success at all at the moment so I'm hoping someone

@Shelley277

Posted in: #Htaccess #ModRewrite #UrlRewriting

I've had a look through several other questions to see if I could get this working but have had no success at all at the moment so I'm hoping someone can help.

This is the URL I currently have,

/?action=viewArticle&articleId=1


Ideally, I'd like to only show the article ID if possible.

Appreciate any help.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Shelley277

1 Comments

Sorted by latest first Latest Oldest Best

 

@Courtney195

Maybe something like this:

RewriteRule ^([0-9]+)/*$ index.php?action=viewArticle&articleId= [L]

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme