Happy Christmas and Year to any or all Designers

I've been creating a comment system (reverse engineering the wordpress one). During my situation I would like each comment to become intractable with internet sites. Which means that they require they are own URL. I built a webpage (comment.php) and saved the ID from the comment like a get parameter.

However , the internet sites take away the get parameter to ensure that they are able to store their very own data within it.

Then i built it in to the URL while using page amounts system because the comment id after which str_replace to obtain the id from the comment we would like. (ie. example.com/comment/135 ). This labored however the internet sites removed the page amounts section. They don't take them off if your letter would sit following the amounts.

Thus I'm searching for a means of getting individual comment pages. I've got a designed file already made and able to go, however i only need a typical comment URL that actually works. Something similar to example.com/comment/135-comment/ with it's own page that may then extract the ID in the URI. How is this done.

You should use htaccess rule to rewrite example.com/comment/135-comment to example.com/comment/?id=135

But this works only when you will find the resp. comment template within the url example.com/comment/

RewriteEngine On
RewriteBase /

RewriteRule ^comment/([0-9]+)-comment/$ http://example.com/comment/?id=$1 [L]

RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

A normal way is by using something similar to example.com/123-post/135-comment/ with both publish id and comment id.

RewriteEngine On
RewriteBase /

RewriteRule ^([0-9]+)-post/([0-9]+)-comment/$ http://example.com/?p=$1#comment-$2 [L]

RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

Should use most styles.