Jump to content

Archived

This topic is now archived and is closed to further replies.

jfgreco915

PHP and mod_rewrite

Recommended Posts

I have mod_rewrite working. However when it loads up the page it seems to ignore the include(example.php) and/or the require(example.php)

Any ideas?

Share this post


Link to post
Share on other sites
.htaccess code for rewrite
[code]
RewriteEngine On
RewriteRule ^news/(.*) /view_news.php?t=vn&nid=$1
[/code]


Page being redirected to.
[code=php:0]

<? include('header.php'); ?>
<table align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="left" class="news-head">News Archives -></td>
</tr>
<tr>
<td align="left" class="padding">
<br>
<?
switch ($_GET['t'])
{
case('vn'):
$bfd->view_news();
break;
default:
$bfd->list_all_news();
break;
}
?>
</td>
</tr>
</table>
<br>
<? include('footer.php'); ?>

[/code]

Share this post


Link to post
Share on other sites
So are you saying it is ignoring the [i]include('header.php')[/i] call at the top of the page, or should I have another guess?

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.