jfgreco915 Posted October 25, 2006 Share Posted October 25, 2006 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? Quote Link to comment Share on other sites More sharing options...
trq Posted October 25, 2006 Share Posted October 25, 2006 You want to post some code? Quote Link to comment Share on other sites More sharing options...
jfgreco915 Posted October 25, 2006 Author Share Posted October 25, 2006 .htaccess code for rewrite[code]RewriteEngine OnRewriteRule ^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] Quote Link to comment Share on other sites More sharing options...
trq Posted October 25, 2006 Share Posted October 25, 2006 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? Quote Link to comment Share on other sites More sharing options...
jfgreco915 Posted October 25, 2006 Author Share Posted October 25, 2006 Yes it is ignoring the includes and/or require at the top and the bottom. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.