[Help] Htaccess Problem - Mode_Rewrite

Newbie Spellweaver
Joined
Jan 21, 2012
Messages
8
Reaction score
3
Hi folks.

I wanna ask if some on can help me here, i really dont have a clue why this doesn't work, and i can't find anything to make it run.

The thing is like this, i have te mod_rewrite on in apache, and in mi .htaccess i put this code:
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^/(.+)_([0-9]+)$ profile.php?u=$2
</IfModule>

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^/$ index.php
</IfModule>

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
</IfModule>

What i'm doing wrong here?.

Thnks for the help in advance.

Have a nice day.

Atte*
 
Make that apear te url/username , ex: "www.ragezone.com/Lican"

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^/(.+)_([0-9]+)$ profile.php?u=$2
</IfModule>

Make that never apear "index.php" and just the clean url ex: "www.ragezone.com" and not "www.ragezone.com/index.php"

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^/$ index.php
</IfModule>

Make that even if the user don't put the www, this will apear anyways. ex: enter whit "ragezone.com" and autoatically change to "www.ragezone.com"

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
</IfModule>

Before i olny have the last one, and worked fine, but when i edited and put the other 2, they don't work (even though the last one keeps working fine, it doesn't make any change whit the others 2 code), that is why i dont get it xD

Tnks for reply.
 
Back