Results 1 to 3 of 3

Thread: non www cannot access other page .htaccess

  1. #1
    Join Date
    Aug 2010
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default non www cannot access other page .htaccess

    i have this

    <IfModule mod_rewrite.c>
    Options +FollowSymLinks
    Options +Indexes
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} !www\.mydomain\.com\.th$ [NC]
    RewriteCond %{HTTP_HOST} ^([a-z0-9-]+)\.mydomain\.com\.th [NC]
    RewriteRule (.*) mypage.php?user=%1 [L]
    RewriteCond %{HTTP_HOST} ([^.]+)\.mydomain\.com\.th
    </IfModule>
    ErrorDocument 404 /error.html

    when i access www.user.mydomain.com.th everything goes normal including all links can be accessed but when i write http://user.mydomain.com.th and try to access the provided link, i didnt get redirected to the specified page.

    some script for .htaccess must be missing, can anyone help?

    thx

  2. #2
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    why did you start a second thread about this? [ original thread ]

    I found the tutorial I mentioned in your original thread. When I get home this evening I'll post some possible solutions for you.

  3. #3
    Join Date
    Aug 2010
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    the first thread already solved! i got the solution but yet i have problems with links on the page

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •