Forum Moderators: phranque
I have subfolder on my root directory /MIKO where CMS installed and there are HTACCESS file for rewrite dinamic URL. Everything works ok when I type in browser [mydomain.net...] a can see index.html ( even index.php ) all links rewrited and works.
I decided to create for this folder MIKO special web adrress and created USING DOMAIN MANAGEMENT PANEL on my hoster site subdomain which is [MIKO.mydomain.net...]
Unfirtunately when I try to see my site typing in browser [MIKO.mydomain.net...] i can only get only php files... [MIKO.mydomain.net...] is OK . it works. BUT [MIKO.mydomain.net...] does not work I get 404 error.
I dont have any HTACCESS file on my root directory.
Here is my HTACCESS file in MIKO folder :
__________________________________________
<Files .ftaccess>
deny from all
</Files>
# -------------------------------------------
# Start of Auth
# -------------------------------------------
<Files .staccess>
deny from all
</Files>
# deny most common except .php
<FilesMatch "\.(inc¦tpl¦h¦ihtml¦sql¦ini¦conf¦class¦bin¦spd¦the me¦module)$">
deny from all
</FilesMatch>
<Limit GET PUT POST>
Order Allow,Deny
Allow from all
</Limit>
Options +FollowSymLinks
<IfModule mod_rewrite.c>
RewriteEngine On
#The next lines check for Email Spammers Robots and redirect them to a fake page
RewriteCond %{HTTP_USER_AGENT} ^Alexibot [OR]
RewriteCond %{HTTP_USER_AGENT} ^asterias [OR]
RewriteCond %{HTTP_USER_AGENT} ^BackDoorBot ..............
RewriteRule ^index.html index.php [L]
#Articles
RewriteRule ^article-([0-9]*)-([a-z]*)-([0-9]*)-([0-9]*).html page.php?cool=News&that=article&fid=$1&mode=$2&ord er=$3&thold=$4 [L]
..........
</IfModule>
______________________
What to do!? Why mod_rewrite ruls in HTACCESS file in MIKO folder works ok when I type in browser [mydomain.net...] and it does not work with [miko.mydomain.net!?...]
I red ton of topics and tried many different code and finally gave up.
Thnks for any help!