...

View Full Version : Need help with apache mod-rewrite!



titanic_fanatic
04-04-2009, 07:23 AM
I've been trying to use mod-rewrite to change these urls:

http://www.domain.com/php/store
http://domain.com/php/store

to this:

http://store.domain.com/

I have googled this and been trying different things that I've found for hours now. This is what I currently have in my .htaccess and it does not have any effect (nothing happens):


RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?domain\.com$
RewriteRule ^(.*)(/php/store)(.*)$ http://store.lockjawrecordsonline.com$3 [R=301,L]

Currently when I visit 'www.domain.com/php/store/somefolder/somefile.php', it should redirect me to 'store.domain.com/somefolder/somefile.php', but it doesn't do anything...

What have I done wrong?

Thanks for any help,
Titanic_Fanatic

*** I appologize, I just realized that I posted this in the wrong forum, how do I move it to the correct forum??? ***



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum