Recent Topics

1 Jul 09, 2006 19:42    

I'm really bad at mod_rewrite stuff..

I created some blogs on 1.6a and they have urls
domain.com/index.php/blognameone
domain.com/index.php/blognametwo

I want
domain.com/blognameone
domain.com/blognametwo
to be used.

Choosed "Explicit reference to stub file (Advanced)" what .htaccess file should I use for mod_rewrite? As you can see the script is located in the main dir of the domain..

Thanks for help..

2 Jul 13, 2006 18:02

solved by myself.. posting for necessities of others..

RewriteEngine On
# enter all the allowed folder names separated by |s
RewriteCond %{REQUEST_URI} !^/(admin|gettext|htsrv|images|img|media|rsc|skins)(.*)$
RewriteRule (^[^\./]+)$ index.php/$1/

# enter the same list of folder names here
RewriteCond %{REQUEST_URI} !^/(admin|gettext|htsrv|images|img|media|rsc|skins)(.*)$
RewriteRule (^[^\./]+)/(.+)$  index.php/$1/$2


Form is loading...