22-Apr-2013, 05:39 AM
Does the script have any issues with clean url's?
The comments script works fine when the url is like :
http://www.example.com/news.php?sid=100
My clean url (for the above url) looks like this :
http://www.example.com/100/the-news-title/
However, when I turn on clean URL's, all my social buttons (facebook like, tweet, google+) are now showing the share results of my main page (www.example.com) and not the specific news item like it normally does.
It's like "/100/the-news-title/" part is being internally stripped out - but the url bar still shows it.
Also, when I try to submit a comment, the url is rewritten to :
Not sure why the comments script is adding the "?sid=100".
This is what I am using to display the form :
The comments script works fine when the url is like :
http://www.example.com/news.php?sid=100
My clean url (for the above url) looks like this :
http://www.example.com/100/the-news-title/
However, when I turn on clean URL's, all my social buttons (facebook like, tweet, google+) are now showing the share results of my main page (www.example.com) and not the specific news item like it normally does.
It's like "/100/the-news-title/" part is being internally stripped out - but the url bar still shows it.
Also, when I try to submit a comment, the url is rewritten to :
Code:
http://www.example.com/100/the-news-title/?sid=100#comments
Not sure why the comments script is adding the "?sid=100".
This is what I am using to display the form :
PHP Code:
<?php
$cmtx_page_id = $sid;
$cmtx_reference = $title;
$cmtx_path = 'comments/';
define('IN_COMMENTICS', 'true');
require $cmtx_path . 'includes/commentics.php';
?>
My apache rewrite (for clean urls) is :
Code:
RewriteRule ^([0-9]+)/?.*$ /news.php?sid=$1 [NC,L]
Any ideas what the issue may be?