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? Link to comment https://forums.phpfreaks.com/topic/25055-php-and-mod_rewrite/ Share on other sites More sharing options...
trq Posted October 25, 2006 Share Posted October 25, 2006 You want to post some code? Link to comment https://forums.phpfreaks.com/topic/25055-php-and-mod_rewrite/#findComment-114204 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] Link to comment https://forums.phpfreaks.com/topic/25055-php-and-mod_rewrite/#findComment-114207 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? Link to comment https://forums.phpfreaks.com/topic/25055-php-and-mod_rewrite/#findComment-114220 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. Link to comment https://forums.phpfreaks.com/topic/25055-php-and-mod_rewrite/#findComment-114225 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.