- Joined
- May 21, 2014
- Posts
- 1,675
- Reaction score
- 594
Im trying to do is change a format of member page URL but have tried a couple of things now and im confusing myself, could do with a fresh pair of eyes if possible
Currently the URL's look like this :
https://www.domain.com/members/randomusername-u101252.html
So the base URL is /members/ , then username, then -u followed by the actual user ID.
Id like to strip everything but the ID so it would look like:
https://www.domain.com/members/101252/
Something like this i guess
RewriteRule ^members/([^\.]+)\.html$ /members/$1 [R=301,L]
But the above only removes the .html from the end and not everything else.
Any help would be grand
Currently the URL's look like this :
https://www.domain.com/members/randomusername-u101252.html
So the base URL is /members/ , then username, then -u followed by the actual user ID.
Id like to strip everything but the ID so it would look like:
https://www.domain.com/members/101252/
Something like this i guess
RewriteRule ^members/([^\.]+)\.html$ /members/$1 [R=301,L]
But the above only removes the .html from the end and not everything else.
Any help would be grand