Conflict, What is the right htaccess rule, default homepage

  • basketmen
  • Student
  • Student
  • basketmen
  • Posts: 80

Post 3+ Months Ago

i want is directed to the

usually i use this htaccess rule to define default homepage file

RewriteRule ^$ forum.php

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

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
  • spork
  • Posts: 6302
  • Loc: Seattle, WA

Post 3+ Months Ago

Use the DirectoryIndex directive to define your default page:

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 27 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-2017. Ozzu® is a registered trademark of Unmelted, LLC.