homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Gold Sponsor 2015!
Home / Forums Index / Code, Content, and Presentation / WordPress
Forum Library, Charter, Moderators: lorax & rogerd

WordPress Forum

How have these urls been generated?

5+ Year Member

Msg#: 4660518 posted 9:56 pm on Apr 4, 2014 (gmt 0)

on a website of mine... where also all in one seo plugin is... the following example domain structure existed

with the permalink structure of

in order to get rid of the 'blog' implication (as it wasn't a blog at all) I moved the folder contents to /somethingmoreappropriate/

some old posts I just let go to 404 and others I redirected to the new folder... same post numbers etc....

However.... I am now seeing in Google Search results...

this type of url...
examplewebsitedotcom/blog/?p=1234 - which is the 'basic' version of the permalink of

is being 301 redirected to

and works fine...

I am scratching my head as to how these new urls have been created...

maybe something like... when the content was moved the aioseo stopped working on the old content and perhaps for a brief time the old content had no seo'd peramlink structure....

answers on a postcard?



WebmasterWorld Senior Member lucy24 us a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month

Msg#: 4660518 posted 9:30 am on Apr 5, 2014 (gmt 0)

It certainly sounds as if a redirect went missing. So they're getting the naked form of the URL instead of the prettified version. You can readily test it by entering the same address yourself-- or clicking the search-engine link. See if you land on the page without getting redirected.

The two htaccess files, for old domain and new, should be almost identical. The only difference is that the final rewrite, from pretty URL to real source of content, will of course only happen on the new site. All external redirects should go in tandem.

It should be noted that if you're using any well-known CMS, google probably knows exactly what lies behind the ordinary URL. And they'll ask for it just to see if they get a page. (Disclaimer: I just made that up out of the clear blue sky.)


WebmasterWorld Senior Member sgt_kickaxe us a WebmasterWorld Top Contributor of All Time 5+ Year Member

Msg#: 4660518 posted 7:32 am on Apr 16, 2014 (gmt 0)

Wordpress tries to do a best guess as to what URL the visitor wanted and it 301's them there.

etc, etc

ALL of these will 301 to the original page, which if you remove blog/ is yet another redirect. The urls aren't being created, they actually exist because your server doesn't return a proper 404 for them. When Google finds a url it never forgets it and will return indefinitely.

Scrapers, aggregation sites and webmasters who don't double check for typos can all create malformed URLs so if your site redirects those instead of returns a 404 or 410 then you may see them appear in places like webmaster tools or analytics.

IS THIS A PROBLEM? Yes, and no. Yes because you don't want all of these 301's and malformed urls out there when they could be avoided but no because Google knows it's wordpress and sees it happening on all Wordpress sites.

There is a way to disable automatic redirects but it hasn't been shown to improve situations like yours much after the fact, if at all. Prevention is your best policy because once it happens it's hard to clean up. Just make sure your visitors have a good experience, don't fret about the phantom urls too much otherwise.


5+ Year Member

Msg#: 4660518 posted 10:14 am on Apr 16, 2014 (gmt 0)

Many thanks for the above replies it is appreciated

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / WordPress
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved