Conflict, What is the right htaccess rule, default homepage

  • basketmen
  • Student
  • Student
  • basketmen
  • Posts: 69

Post 3+ Months Ago

i want http://www.domain.com is directed to the http://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
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Posts: 6254
  • Loc: Seattle, WA

Post 3+ Months Ago

Use the DirectoryIndex directive to define your default page:

Quote:
DirectoryIndex forum.php index.php index.html index.htm

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 62 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.