How can I send parameters to a sub-index page?

Posted by sirius on Stack Overflow See other posts from Stack Overflow or by sirius
Published on 2010-05-13T10:33:05Z Indexed on 2010/05/15 3:14 UTC
Read the original article Hit count: 316

Filed under:
|
|

Hello.

I have a homepage, for example: www.example.com.

There is a url like this:

www.example.com/subdirectory/page.php?var1=A&var2=B

It's a long url, so I changed it like this:

www.example.com/subdirectory/page/A/B

as well as I config the .htaccess file:

<Files page>

ForceType application/x-httpd-php

</Files>

However, I assume it's also quite long. If the "page.php" change to "index.php", the "page" seems to disappear, just like this:

www.example.com/subdirectory/A/B

But I don't know how to achieve.

Is omitted 'page' possible? How can I just do it?

Thanks for your help.

© Stack Overflow or respective owner

Related posts about apache

Related posts about index