stone.fletcher Posted December 20, 2010 Share Posted December 20, 2010 i got a small issue with a comment script nothing to do with the comments script itself but i got this page who use a url rewrite when i got a lot s of comments on the page the pagination is sending me to the second comments page but the problem is the url redirect with .HTACCESS !! it give me the original page. exemple:: my redirected url is : http://localhost/newssite/15/breakingnews.html when i click on the comments page 2 i got this : http://localhost/newssite.php?comm_page=2 how can i fix that ???? so when i click on the the comm_page 2 i get back to : http://localhost/newssite/15/breakingnews.html thanks for your help . Quote Link to comment https://forums.phpfreaks.com/topic/222252-url-rewrite-and-comments-script/ Share on other sites More sharing options...
trq Posted December 20, 2010 Share Posted December 20, 2010 Firstly, there is no need for all caps in your subject line. Your post is no more important than anyone else's. Your going to need to change the way the link is generated within newssite.php. Quote Link to comment https://forums.phpfreaks.com/topic/222252-url-rewrite-and-comments-script/#findComment-1149702 Share on other sites More sharing options...
stone.fletcher Posted December 21, 2010 Author Share Posted December 21, 2010 Sorry for the all caps !! ok but it is a news website everything can work if it is a static link but the problem is i will be forced to make a lot of pages for each articles and i dont want to do that so i used url rewriting so i can use one page and each articles got an id . Quote Link to comment https://forums.phpfreaks.com/topic/222252-url-rewrite-and-comments-script/#findComment-1149828 Share on other sites More sharing options...
trq Posted December 21, 2010 Share Posted December 21, 2010 Sorry but your last reply makes no sense at all. Quote Link to comment https://forums.phpfreaks.com/topic/222252-url-rewrite-and-comments-script/#findComment-1149832 Share on other sites More sharing options...
lewisjacob2010 Posted December 22, 2010 Share Posted December 22, 2010 It's important to change the way the link is generated within news site.php. This is good solution. Quote Link to comment https://forums.phpfreaks.com/topic/222252-url-rewrite-and-comments-script/#findComment-1150436 Share on other sites More sharing options...
jhondoe144 Posted December 22, 2010 Share Posted December 22, 2010 I found the solution i changed the rewriterule !! before it was like this:: RewriteRule ^cal/([0-9]+)/([a-z]*)$ call.php?id=$1 RewriteRule ^newslog/([0-9]+)/([a-z]*).php$ /newslog.php?id=$1&rubrique=$2 [L] even my css my js and my img wasnt working properly so i rewrite the rule RewriteRule ^call-([0-9]+)-([a-z]*)$ call.php?id=$1 RewriteRule ^newssite-([0-9]+)-([a-z]*).php$ /newssite.php?id=$1&rubrique=$2 [L] and now it 's working !! Quote Link to comment https://forums.phpfreaks.com/topic/222252-url-rewrite-and-comments-script/#findComment-1150460 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.