Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Installing & running WordPress (http://forum.bytesforall.com/forumdisplay.php?f=6)
-   -   Mystery URL and WordPress structure (http://forum.bytesforall.com/showthread.php?t=14548)

thetravelchronicle Jun 8, 2011 11:18 PM

Mystery URL and WordPress structure
 
One of my pages shows up as itself, but the same page also shows up with "/comment-page-1" appended to the end of the url.

Nothing with that title shows up in the Admin interface, as a comment or anything else, nor have I been able to find a post or page with that name by searching or scrolling through the database.

One, I would like to eliminate the duplication, but two, I'd like to use this to better understand the structure and interrelation of WordPress and ATO.

Can anyone suggest where this directory/file resides so that I can get rid of it?

http://www.kenyatravelchronicle.com/travel-photography/

http://www.kenyatravelchronicle.com/...omment-page-1/

juggledad Jun 9, 2011 02:54 AM

It's not a directory or file. Remember all pages shown are dynamically built on request.

Set the permalinks back to the default and look again

thetravelchronicle Jun 9, 2011 08:59 AM

OK, substituting "generated page" for the terms "file" or "directory", what the heck about permalinks is requesting or creating a generated page with a URL address ending in /comment-page-1/ ?

And for what purpose if it duplicates a page already generated by a request from a usual source, i.e. a menu link? Further regarding purpose, there is no access to the page that I can find anywhere on my site, I only became aware of it while looking at "HTML suggestions" using Webmaster Tools.

I'm trying to get rid of duplicate title tags and meta descriptions and assume I can achieve that with a no-follow for /comment-page-1/, but have no idea what the implications are, or whether the simpler route would be to turn off the generation of the page itself -- somehow.

juggledad Jun 9, 2011 06:47 PM

1) how do you get to the two pages via the site
2) what happens if you set the permalinks to the default - what are the url's then?

Permalinks cause WORDPRESS to add some rules to APACHE .htaccess file. The theme has nothing to do with it. You might be better served asking this question at wordpress.org.

thetravelchronicle Jun 10, 2011 02:30 AM

A search on /comment-page-1/ at WordPress returns one relevant hit.

According to WordPress, the function comment_link() will "Create an anchored permalink to a single comment" and that URL will contain /comment-page-1/ followed by a comment #, as in /comment-page-1/#comment-20

My best guess at the moment is that by choosing the ATO option "Allow comments on "Page" pages, too?" the Webmaster Tools bot picks up both the page and the comment, finds the meta description and title tag of the page for a second time, and then we have duplicates of both.

The three things wrong with this idea is that I still don't know where or why the comment_link() function gets invoked to generate an anchored permalink, why the resulting duplicate URL doesn't show a comment #, or why only some of the pages with comments on them are showing up in the Webmaster Tools scan.

By the way, in response to your questions:

1) via my site I access the "original" pages by way of menu links. There is no access to the /comment-page-1/ version of the same page except through the comments list in the ATO admin pages - which include the comment # in the URL.

2) setting permalinks to default just substitutes a page # for the pretty permalink, it doesn't have any effect on the rest

There is no mention of comment_link() in the .htaccess file.

There is an incidence of comment_link() in the Atom Feed file feed_atom_comments.php, but deactivating the plugin Atom comes in had no effect.

juggledad Jun 10, 2011 05:02 AM

Quote:

There is no mention of comment_link() in the .htaccess file.
there wouldn't be, the .htaccess file is Apache configuration while 'comment_link()' is a function written t in the PHP language. two separate things.

There is no 'comment_link()' in the Atahualpa theme. Now Atahualpa does call other functions in the wordpress code and one of these could be calling comment_link().


All times are GMT -6. The time now is 07:05 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.