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 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: quick rewrite
Author
Message |
designdevil
Newbie


Joined: 07 July 2011
Posts: 2
Posted: 07 July 2011 at 8:38am

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
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 08 July 2011 at 5:18am

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
 
designdevil
Newbie


Joined: 07 July 2011
Posts: 2
Posted: 12 July 2011 at 2:00pm

I must be doing something wrong but when I paste those two lines, I keep getting a blank page
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 25 July 2011 at 2:56am

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

__________________
Regards,
Anton
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version
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