OK firstly thanks to Blaine who tried to help me out before in my previous thread - I had achieved what I setup to do, but after adding a subdomain I think that my sloppy htaccess code is causing me issues, so Im back again :) and Id really appreciate some help!
Currently my htaccess reads as follows:
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteRule ^(.*)/$ categories.php?cat=$1
RewriteRule ^(.*)/(.*)/$ subcat.php?cat=$1&sub=$2
RewriteRule search/(.*) search.php?q=$1
RewriteRule -id-(.*) product.php?id=$1
RewriteRule ^topsearches$ topsearches.php
RewriteRule ^topsearches/(.*)$ topsearches.php?pagenum=$1
ErrorDocument 404 /404page.php
RewriteCond %{HTTP_HOST} !^www.my-site.co.uk$
RewriteRule ^(.*)$ http://www.my-site.co.uk/$1 [R=301]
It works perfectly. So when somebody types:
http://www.my-site.co.uk/guitars/
It gets redirected to
http://www.my-site.c...php?cat=guitars
And when somebody types:
http://www.my-site.c...itars/acoustic/
Its gets redirected to
http://www.my-site.c...rs&sub=acoustic.
Now what I have done is setup subdomain.my-site.com
But when I go to a browser and type in http://subdomain.my-site.com it redirects to http://www.my-site.c...hp?cat=business
Obviously I want it to go to the subdirectory /public_html/subdomain/
Anybody got any ideas please? Once again your help is very much appreciated!
Thank you!


Sign In
Create Account


Back to top









