Click here to Skip to main content
14,976,187 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Every One,

I have three files in my project

1. index.php
2. file1.php
3. file2.php

and i have created a simple .htaccess file in run under the iss 7
url rewrite is working but i got a simple issue.

In .htaccess file

<br />
ErrorDocument 404 /404.php<br />
RewriteEngine on<br />
<br />
<IfModule mod_rewrite.c><br />
#RewriteRule (*)$ http://localhost:81/uniphp/{R:1}<br />
<br />
<br />
RewriteRule  ^/file/MyFile$ file1.php<br />
RewriteRule  ^/file/YourFile$ file2.php<br />


If I open my website and navigate the url is working fine but after navigate i want to move second url it append "file" keyword again.
Example

Navigate between Site
"Index.php to file/myfile"

"Url: http://localhost/file/myfile"

When I am in myfile page and i want to move your file page
then url 

URl: "http://localhost/file/file/yourfile"

So I want to display url only

"http://localhost/file/yourfile"

Please help to solve this issue.
Posted
Updated 1-Oct-15 1:46am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900