Page 1 of 1

Rewrite CG's user directory profile URLs with htacces

Posted: Thu Dec 27, 2012 9:29 pm
by Recon
Hi,

Is it possible to rewrite CG's user directory profile's urls like there are no subfolders? I know it can be done, but I am not familiar with htacces, so any tips for that?

"http://www.domain.com/users/7/56/username

to

"http://www.domain.com/username

With htacces I can rewrite one folder (7) with this:

RewriteCond %{REQUEST_URI} ^/7/([^/]+)/$
RewriteRule ^(.*) %1/ [R=301,NC,L]


-Recon

Re: Rewrite CG's user directory profile URLs with htacces

Posted: Wed Jan 30, 2013 9:05 pm
by Dr.CSS
Most likely you will not be able to do this, if the htaccess rule works it will have to be replicated for every article ID number[or whatever it is], /7/56/...