Can I change the directory index based on URL?

New to mod_rewrite? This is a good place to start.

Can I change the directory index based on URL?

Postby paulsheff » Tue Jun 29, 2010 7:21 am

So something like

Code: Select all
RewriteCond %{HTTP_HOST} ^siteone\.co\.uk [nc]
DirectoryIndex index.php

RewriteCond %{HTTP_HOST} ^sitetwo\.co\.uk [nc]
DirectoryIndex default.php


Thanks
paulsheff
 
Posts: 25
Joined: Wed Oct 04, 2006 1:12 pm

Return to Beginner's Corner

Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron