web site in pure php with clean url

Posted by Testadmin on Stack Overflow See other posts from Stack Overflow or by Testadmin
Published on 2010-05-20T09:10:28Z Indexed on 2010/05/20 9:20 UTC
Read the original article Hit count: 210

Filed under:
|
|
|

Hi

I have enabled mod_rewrite in my Xampp apache. When I run my php info page, I saw mod_rewrite under Loaded Modules. So I think it's enabled.

Then I create a folder clean-url under htdocs. Inside clean-url folder I have 3 files

1) index.php here I put

Welcome

2) Test. php

3) .htaccess

Here I put RewriteEngine On RewriteRule ^([a-z]+)/([a-z-]+)$ /$1/$2.php [L]

I want to run the index page, and by clicking on that hyper link I want to display the test.php page with URL mydomain/clean-url/test

I know I am in a wrong path. Does any one help me? Or correct me? ALso i don't know any idea about url rewriting and .htaccess. Please help me.

© Stack Overflow or respective owner

Related posts about php

Related posts about url