Did not find solution in internet ! So problem is: 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 http://www.mydomain.net/MIKO 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 http://MIKO.mydomain.net Unfirtunately when I try to see my site typing in browser http://MIKO.mydomain.net i can only get only php files... http://MIKO.mydomain.net/index.php is OK . it works. BUT http://MIKO.mydomain.net/index.HTML 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 http://www.mydomain.net/MIKO and it does not work with http://miko.mydomain.net !? I red ton of topics and tried many different code and finally gave up. Thnks for any help !
This is becuase there is no "index.html" file, it is "index.php" You need to redirect miko.mydomain.net/index.php to miko.mydomain.net, Use a 301 redirect. Try and putting the code in the root folder of mydomain.net
Thanks for reply Smatts 1. Want to have htaccess for /MIKO folder in /MIKO folder .... 2. May be I need to add some code in HTACCESS in root ... But why redirect it is not already redirected , because it works ... I can see all PHP files 3. http://MIKO.mydomain.net/index.html the error message is that : 404 The requested URL /business/index.php was not found on this server. But it is exist http://MIKO.mydomain.net/index.php I can see the content fo page , even like that http://www.mydomain.net/MIKO/index.php....!