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

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


to this:


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,

*** 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