Reply
Conflict, What is the right htaccess rule, default homepage file with htaccess?
Old 01-19-2009, 05:37 PM Conflict, What is the right htaccess rule, default homepage file with htaccess?
Average Talker

Posts: 22
Name: syu
Trades: 0
i want www.domain.com is directed to the www.domain.com/forum.php

usually i use this htaccess rule to define default homepage file

Quote:
RewriteRule ^$ forum.php


but in one of my website, above rule is conflict with the other htaccess



Quote:
RewriteRule ^((archive/)?(.*\.php(/.*)?)?)$ blog.php [L,QSA]


so the first rule is not working



please help how is the correct rule so both rule not conflict (maybe joining or split them)





i must found the answer, please help guys
basketmen is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 01-19-2009, 06:52 PM Re: Conflict, What is the right htaccess rule, default homepage file with htaccess?
Decaf's Avatar
Ultra Talker

Posts: 490
Name: Adam
Trades: 0
Something like
Code:
DirectoryIndex forum.php
Btw, .htaccessEditor is a good site to make .htaccess files with.
__________________
Decaf is offline
Reply With Quote
View Public Profile Visit Decaf's homepage!
 
Old 01-19-2009, 07:26 PM Re: Conflict, What is the right htaccess rule, default homepage file with htaccess?
Average Talker

Posts: 22
Name: syu
Trades: 0
Quote:
DirectoryIndex forum.php
i had try that before, its not works too, its looks like its conflict with above rule too


Quote:
Btw, .htaccessEditor is a good site to make .htaccess files with.
nice site, i will try it




if anyone have another suggest please reply
basketmen is offline
Reply With Quote
View Public Profile
 
Old 01-19-2009, 09:46 PM Re: Conflict, What is the right htaccess rule, default homepage file with htaccess?
andrei155's Avatar
CEO of BLD Hosting

Latest Blog Post:
Cpanel Update
Posts: 1,340
Name: Andrei
Location: Canada
Trades: 6
DirectoryIndex forum.php is the right directive.
__________________
No Overselling Guarantee
Now Includes a Free Domain
BLD Hosting - Web Hosting | Web Hosting Blog
andrei155 is offline
Reply With Quote
View Public Profile Visit andrei155's homepage!
 
Reply     « Reply to Conflict, What is the right htaccess rule, default homepage file with htaccess?
 

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.12409 seconds with 13 queries