- 576
- Posts
- 20
- Years
- Seen Mar 14, 2008
Can some one teach me mod_rewrite to rewrite my PHP URL?s in Html? I did read a tutorial in phpfreaks website but I am not that knowledgeable in all these matters. So, can some one post it here about how to do it? Thank you very much!
One mroe doubt
If I change this to
Can I use index.php?page=blahblah.
Also what should my cutenews archives file is a .php file . Since my include tag includes only HTML files, what should I do to make it show .php files?
~ CC
~ CC
One mroe doubt
Code:
<?php
if (!$id) {
$id = "main";
$include = $id . ".txt";
}
else {
$include = $id . ".html";
}
if (is_file($include) == "1") {
include $include;
}
else {
include "404.txt";
}
?>
If I change this to
Code:
<?php
if (!$page) {
$page = "main";
$include = $page . ".txt";
}
else {
$include = $page . ".html";
}
if (is_file($include) == "1") {
include $include;
}
else {
include "404.txt";
}
?>
Also what should my cutenews archives file is a .php file . Since my include tag includes only HTML files, what should I do to make it show .php files?
~ CC
~ CC