robert_gsfame Posted August 28, 2010 Share Posted August 28, 2010 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 Link to comment https://forums.phpfreaks.com/topic/211924-non-www-cannot-access-other-page-htaccess/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.