Hi MrPhil,
I finally use PHP Url Masking to handle this, it is because my directory structure is quite crazy and requires a high level of flexibility.. so yeah...
It works great.
However, I still have a problem with my subdomain: sub.domain.com
It goes up-down-up-down-up-down.
Checking the DNS it says like the following:
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_5.3 <<>> sub.domain.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: [b]NXDOMAIN[/b], id: 37728
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;sub.domain.com. IN A
;; AUTHORITY SECTION:
domain.com. 10800 IN SOA ns5.lunarmania.com. alerts.lunarpages.com. 2011030201 86400 7200 3600000 86400
;; Query time: 0 msec
;; SERVER: 172.16.12.11#53(172.16.12.11)
;; WHEN: Thu Mar 17 21:06:37 2011
;; MSG SIZE rcvd: 119
I have asked support.lunarpages and they say that the DNS checking from their place (US I guess) looks ok with no NXDOMAIN.
I'm from Australia by the way, and I have used Blackberrys, iPhones, Safari, Firefox, Chrome, IE and asked my friends, and the results is still Error504.
How come they can open it, while I cant?
Is it true that it requires some time (2-3 days) for the system to propagate?
I'm afraid that after I wait for several hours, it is still not active.
Is it possible to force the sub.domain.com to be URL/masked to domain.com/home/id ?
This is totally Sparta..
Please help.
Regards,
Ryonn
Note: as the topic is now no longer htacces, should I make another thread?
Note 2:
This is my htaccess:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule \.html$ index.php [L]
RewriteCond %{HTTP_HOST} ^(www\.)?domain\.com$ [NC]
RewriteCond %{REQUEST_URI} !^/home/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .? home%{REQUEST_URI} [L]
RewriteCond %{HTTP_HOST} ^(www.)?domain.com$
RewriteRule ^(/)?$ home/index.php [R=301,L]