Rewrite CG's user directory profile URLs with htacces
Posted: Thu Dec 27, 2012 9:29 pm
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
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