Hi, I have the .htaccess currently set to redirect the subdomain into the url like below. RewriteCond %{HTTP_HOST} !^www\.paymonthlyphones\.mobi$ [NC] RewriteCond %{HTTP_HOST} ^(www\.)?([^\.]+)\.paymonthlyphones\.mobi$ [NC] RewriteRule ^$ /phone.php?phone=%2 [QSA,nc] Code (markup): I need to do something like the below but I cannot figure it out. RewriteCond %{HTTP_HOST} ^(www\.)?([^\.]+)\.paymonthlyphones\.mobi/([^\.]+)$ [NC] RewriteRule ^(www\.)paymonthlyphones.mobi/phone.php?phone=$1&moreinfo=$2 [QSA,nc] Code (markup): Any help would be greatly appreciated.
I've tried the following and get a 404 /more was not found. RewriteCond %{HTTP_HOST} ^(www\.)?(.*)\.paymonthlyphones\.mobi/more$ [NC] RewriteRule ^$ /phone.php?phone=%2&more=yes [QSA,nc] Code (markup): Am I missing something simple?
If this works. RewriteEngine on RewriteCond %{HTTP_HOST} !^www\.paymonthlyphones\.mobi$ [NC] RewriteCond %{HTTP_HOST} ^(www\.)?([^\.]+)\.paymonthlyphones\.mobi$ [NC] RewriteRule ^$ /phone.php?phone=%2 [QSA,nc] Code (markup): Then why doesn't this? RewriteEngine on RewriteCond %{HTTP_HOST} !^www\.paymonthlyphones\.mobi/more/$ [NC] RewriteCond %{HTTP_HOST} ^(www\.)?([^\.]+)\.paymonthlyphones\.mobi/more/$ [NC] RewriteRule ^$ /phone.php?phone=%2&more=true [QSA,nc] Code (markup): I think I'm just missing something simple here, i've tried 100 different combinations, and still no where closer...