Topic: rewrite engine & page404

When i using  rewrite engine then on a page 404 appear next:
CuteNews has detected that you are including show_news.php using the URL to this file

This is incorrect and you must include it using the PATH to show_news.php. Example:
this is WRONG :   <?php include("http://yoursite.com/cutenews/show_news.php"); ?>
this is CORRECT:   <?php include("cutenews/show_news.php"); ?>

if you think this message shouldn't be shown, open current file and delete check_direct_including() function, at own risk!

in .htaccess i have
# --- CUTENEWS[ST]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /news/show_news.php?cn_rewrite_url=$1 [L]
# --- CUTENEWS[ED]
How i can fix it?

2 (edited by denisebell14.2 2020-10-31 04:57:54)

Re: rewrite engine & page404

Thanks for the step by step tutorial. Works like a charm!   
The solution worked for me thanks to the community and the members for the solution mcdvoice

3 (edited by lauriecampbell1981 2021-06-12 06:17:32)

Re: rewrite engine & page404

I just created some multireddits and noticed there are some duplicates due to cross posting. Is there a way to filter these?


targetpayandbenefits