Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 3.0
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: how to use ISAPI_Rewrite with IIS5 Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Cherine
Newbie
Newbie


Joined: 27 July 2010
Online Status: Offline
Posts: 21
Posted: 27 July 2010 at 10:34am | IP Logged Quote Cherine

HI,
sorry for my english.

I have a folder template1.
and in the folder there has a file . htaccess which contains all this:


RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php?p=$1 [QSA,L].



I also have a file (index.php) which contains all this:


<?php
define("WEBROOT","/template1/");
define("WEBROOT2","/template1/content/templatemo_233_coffee/");
define("WEBROOT3","/template1/content/phpBB3/");
if(!isset($_GET["p"])){$_GET["p"]="index";}
if(!file_exists("content/".$_GET["p"].".php")){ $_GET["p"]="404";}
ob_start();
include "content/".$_GET["p"].".php";
$content=ob_get_contents();
ob_end_clean();
include "template.php";
?>

I also have a file (template.php) which contains  this:



 <li>
<a href=<?php echo WEBROOT;?>article/article1">Contact</a>
</li>


Template1 folder is structured like this one:

Template1->
       index.php ,template.php ,(content->article->article1.php)
                      
                              

I put everything in the folder (wwwroot).
and I installed (ISAPI_Rewrite3_0075_Lite).




my problem is that when I run the link
http://localhost/template1/article/article1
 I get the error 404.
therefore isapi_rewrte did not work.
is what I forgot something.
all suggestions are welcome.



THANKSSSSSSSSSS
Back to Top View Cherine's Profile Search for other posts by Cherine
 
Cherine
Newbie
Newbie


Joined: 27 July 2010
Online Status: Offline
Posts: 21
Posted: 27 July 2010 at 11:42am | IP Logged Quote Cherine

I rest my question more simply.
is it sufficient to install ISAPI_Rewrite.
or else he must do something else
my question is simple I just want to know how to use

THANKS


Edited by Cherine - 27 July 2010 at 12:29pm
Back to Top View Cherine's Profile Search for other posts by Cherine
 
AndrushkaUS
Senior Member
Senior Member


Joined: 13 November 2009
Location: United States
Online Status: Offline
Posts: 1545
Posted: 28 July 2010 at 4:54am | IP Logged Quote AndrushkaUS

Hi Cherine,

If it's not a manual install, than everything must be done during installation.
First, you need to make sure that ISAPI_Rewrite is working at all. Please see first part of FAQ
Please, describe the scenario that you want to follow via examples.
Usually the rewrite.log for the testing request helps us to analyze the issue, please provide that.

Regards
Andrew

__________________
The will to conquer is the first condition of VICTORY
Back to Top View AndrushkaUS's Profile Search for other posts by AndrushkaUS
 
Cherine
Newbie
Newbie


Joined: 27 July 2010
Online Status: Offline
Posts: 21
Posted: 30 July 2010 at 9:37am | IP Logged Quote Cherine

HI,

ok I prepare a simple example of what I want to do.
I would ask you to install wamp.
and I'll tell you how to run the simple example under wamp.
and you'll tell me how to do with IIS5.
OKKKKKKKKKKKKK?????

THANKS
Back to Top View Cherine's Profile Search for other posts by Cherine
 
Cherine
Newbie
Newbie


Joined: 27 July 2010
Online Status: Offline
Posts: 21
Posted: 30 July 2010 at 12:09pm | IP Logged Quote Cherine

HI this is a simple example:


1.create a test folder in wamp
2.Create 
a template.php file and put it in the  test folder
     and just put this line
(<a href="<?php echo WEBROOT; ?>article/article1.php">hi</a>)in the body tag.
3.create another file in the test folder (index.php) and put this :


<?php
define("WEBROOT","/test/");
if(!isset($_GET["p"])){$_GET["p"]="index";}
if(!file_exists("content/".$_GET["p"].".php")){ $_GET["p"]="404";}
ob_start();
include "content/".$_GET["p"].".php";
$content=ob_get_contents();
ob_end_clean();
include "template.php";
?>


4.create one folder in the folder test (content).

5.create in the folder content article1.
6.in the folder artilce1 create a file article.php and put juste this:


 <?php
 echo "hi";
       
?>


7.in the folder test create one file .htaccess and put this:


RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php?p=$1 [QSA,L]



and you start wamp localhost.
and note well the link.


if you did not understand anything you said to me

THANKS




Edited by Cherine - 30 July 2010 at 12:13pm
Back to Top View Cherine's Profile Search for other posts by Cherine
 
AndrushkaUS
Senior Member
Senior Member


Joined: 13 November 2009
Location: United States
Online Status: Offline
Posts: 1545
Posted: 02 August 2010 at 5:04am | IP Logged Quote AndrushkaUS

Hello,

That'd take too much time.
The easiest way here to check if ISAPI_Rewrite is working:
1) create temp.php
2) paste in .htaccess or httpd.conf
Code:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule .* temp.php [R=301,L]


3) request smth like http://www.domain.com/blah-blah-blah

This should match the rule: /blah-blah-blah does not exist, so you should be redirected to temp.php
If you do not get redirected - ISAPI_Rewrite might now work. We will connect via online meeting and help you with this.

Regards
Andrew

__________________
The will to conquer is the first condition of VICTORY
Back to Top View AndrushkaUS's Profile Search for other posts by AndrushkaUS
 
Cherine
Newbie
Newbie


Joined: 27 July 2010
Online Status: Offline
Posts: 21
Posted: 05 August 2010 at 8:47am | IP Logged Quote Cherine

hello,
I am truly sorry for the delay.

I do not understand what to do.
I create a file temp.php and. htaccess and I put everything into a test folder and everything in the wwwroot folder.
but then I misunderstood what you asked to do.
Back to Top View Cherine's Profile Search for other posts by Cherine
 
Cherine
Newbie
Newbie


Joined: 27 July 2010
Online Status: Offline
Posts: 21
Posted: 05 August 2010 at 8:55am | IP Logged Quote Cherine

if you wanted to go in my machine and see what's wrong. I'm not against it(that mean I agree.).

THANKS


Edited by Cherine - 05 August 2010 at 2:15pm
Back to Top View Cherine's Profile Search for other posts by Cherine
 
AndrushkaUS
Senior Member
Senior Member


Joined: 13 November 2009
Location: United States
Online Status: Offline
Posts: 1545
Posted: 11 August 2010 at 12:25am | IP Logged Quote AndrushkaUS

Cherine, sorry i've been on a vacation.
Please, send us a ticket via helpdesk or email with a subj: "To Andrushka"
We'll try to help you out ASAP.

Regards
Andrew

__________________
The will to conquer is the first condition of VICTORY
Back to Top View AndrushkaUS's Profile Search for other posts by AndrushkaUS
 
Cherine
Newbie
Newbie


Joined: 27 July 2010
Online Status: Offline
Posts: 21
Posted: 11 August 2010 at 7:48am | IP Logged Quote Cherine

Hi,
thank you to kindly help me

but Anton helped me.
 he came into my pc via teamwiewer, he saw where the problem was.
my problem is that I installed ISAPI_Rewrite 3 Freeware.

they needed to run the (isapi_rewrite3 full one )

because (. htaccess) work just with the  (one ISAPI_Rewrite 3 Full one)
THANK YOU VERY MUCH
Back to Top View Cherine's Profile Search for other posts by Cherine
 

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 can vote in polls in this forum