Jump to content

URL REWRITE AND COMMENTS SCRIPT !!


stone.fletcher

Recommended Posts

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 .

 

Link to comment
Share on other sites

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 !!

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.