Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Subdomain mod_rewrite htaccess problem .
Old 08-13-2006, 08:10 PM Subdomain mod_rewrite htaccess problem .
Junior Talker

Posts: 3
Name: Rov
Trades: 0
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 !
rovshan is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to Subdomain mod_rewrite htaccess problem .
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.08533 seconds with 12 queries