Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 3.0 support forum
 Helicon Tech : ISAPI_Rewrite 3.0 support forum
Subject Topic: DirectoryIndex Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
tsophon
Newbie
Newbie


Joined: 26 June 2008
Online Status: Offline
Posts: 11
Posted: 30 June 2008 at 12:21pm | IP Logged Quote tsophon

I wonder if ISAPI_Rewrte 3.1 supports the DirectoryIndex directive.

I get "Unknow expression in hte file.... .htaccess..." on error.log

This is the line...

DirectoryIndex /mm5/merchant.mvc?

If anyone knows, please advise. Thanks so much.

Tanya

Back to Top View tsophon's Profile Search for other posts by tsophon
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 4191
Posted: 01 July 2008 at 5:50am | IP Logged Quote Anton

ISAPI_Rewrite 3 does not support DirectoryIndex directive.

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
tsophon
Newbie
Newbie


Joined: 26 June 2008
Online Status: Offline
Posts: 11
Posted: 01 July 2008 at 9:23am | IP Logged Quote tsophon

Thanks Anton for the reply.

The website uses Miva Merchant and /mm5/merchant.mvc is the home page for the website where its home directory is an upper folder.

Home directory: C:\Inetpub\wwwroot\mysite\

Miva Merchant folder: C:\Inetpub\wwwroot\mysite\mm5\

I put these lines in index.php at the home directory to have the website redirect to /mm5/merchant.mvc. 

header("HTTP/1.1 301 Moved Permanently");
header("Location: /mm5/merchant.mvc");

And the result is www.mysite.com/mm5/merchant.mvc

What I would like to do is to make the URL displayed just like www.mysite.com

Is there a way around to achieve this?

Back to Top View tsophon's Profile Search for other posts by tsophon
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 4191
Posted: 02 July 2008 at 4:17am | IP Logged Quote Anton

You may use the following rule, so when user enters www.mysite.com it will actually go to www.mysite.com/mm5/merchant.mvc:

RewriteBase /
RewriteRule ^$ mm5/merchant.mvc [NC,L]

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
tsophon
Newbie
Newbie


Joined: 26 June 2008
Online Status: Offline
Posts: 11
Posted: 02 July 2008 at 10:33am | IP Logged Quote tsophon

Thank you. It works like a charm!
Back to Top View tsophon's Profile Search for other posts by tsophon
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum