Question:

What is mod rewrite how to use in php?

by  |  earlier

0 LIKES UnLike

What is mod rewrite how to use in php?

 Tags:

   Report

2 ANSWERS


  1. I think it depends if you are hosting your site or if your site is hosted in a shared server. When your site is hosted independently, you can chane it in the .ini file.

    However if your site is in a shared server, you can create it in your .htaccess file.

    Just research further.


  2. mod_rewrite is an apache module totally transparent to PHP. This means it is used by the http server while PHP doesn't know anything about it.

    mod_rewrite is often used to "rewrite" (duh?) the URIs in a more user (and search engine) friendly way, such as transforming:

    http: //got.it/index.php ? module=email&action=send

    to:

    http: //got.it/email/send/

    leaving intact the PHP program.

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.