This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: quick rewrite Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
designdevil
Newbie
Newbie


Joined: 07 July 2011
Online Status: Offline
Posts: 2
Posted: 07 July 2011 at 8:38am | IP Logged Quote designdevil

Hi, so basically I have the following:
www.example.com (splash page/enter page)
www.example.com/main (main page)
www.example.com/blog (wordpress blog)

My problem is i'm getting a 404 error when I go to ww.example.com/main and for it to display the page correctly, you need to have add the .php extension after main.  I want it to be just www.example.com/main and not www.example.com/main.php

Likewise, I also want to remove the index.php from the wordpress blog url. I tried the different scripts/solutions provided in other topics in this forum and nothing seems to work for me. Please help. What should I put in the httpd.ini file?
Back to Top View designdevil's Profile Search for other posts by designdevil
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 08 July 2011 at 5:18am | IP Logged Quote Anton

To have /main instead of /main.php use:

RewriteRule /main /main.php [I,L]

As for removing index.php please try:

RewriteRule /(?!(?:index\.php|css|js|images|other|physical|files|and|folders).*)(.*) /index.php/$1 [I,L]

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


Joined: 07 July 2011
Online Status: Offline
Posts: 2
Posted: 12 July 2011 at 2:00pm | IP Logged Quote designdevil

I must be doing something wrong but when I paste those two lines, I keep getting a blank page
Back to Top View designdevil's Profile Search for other posts by designdevil
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 25 July 2011 at 2:56am | IP Logged Quote Anton

Ok, please show the entire httpd.ini file you are using and tell what request you are testing?

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

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