Wordpress pages with numbers in url - wordpress

I've found strange problem in my blog. Google index one page with several URLs:
example:
Main page:
http://www.example.com/2011/05/11/title/
Google add this too:
http://www.example.com/2011/05/11/title/1/
http://www.example.com/2011/05/11/title/2/
http://www.example.com/2011/05/11/title/3/
etc.
It is same pages. When I open source code of http://www.example.com/2011/05/11/title/1/ page I see same url in canonical header (with /1/)!
I've tried to disabled all plugins, but I see pages with numbers /1/ still and I see this url in canonical tag. Looks like it is no plugin problem.
I can use any number but not letters: example /1a/ - 404
Why it is happen? How to fix it? How to use original url in canonical header?

Please try to change permalink from admin under setting.

Go to wp dashboard then locate and click "settings > permalinks" then choose other format .

Related

WordPress permalink gives 404 after copy paste

I'm using utf8 urls (Hebrew) and encountered a weird behavior.
Reaching the website and browsing between pages works perfectly.
But copying the url and pasting it to a different tab will get you to a 404 page.
Also all links that are indexed by google shows 404 errors
This problem occurs only on the woo-commerce category links and i should mention that im using a plugin to remove the category base from the url.
How can i solve this ?
You can view the behavior on http://thj.360.co.il/
You may need to update your permalink structure again in settings. Just save the page again so it updates htaccess.
Pay attention that the link in hebrew parsed differently from the link that works:
WORKING LINK:
http://thj.360.co.il/%d7%98%d7%91%d7%a2%d7%95%d7%aa-%d7%99%d7%94%d7%9c%d7%95%d7%9e%d7%99%d7%9d/
NOT WORKING LINK:
http://thj.360.co.il/%D7%98%D7%91%D7%A2%D7%95%D7%AA-%D7%99%D7%94%D7%9C%D7%95%D7%9E%D7%99%D7%9D/
As you see in the second link all the letters are capitalized...

get variable from a wordpress permalink

i have this wp page that display the preview of the products and once click it will send to the other page with full details of the product. Actually this worked on not pretty permalink but hopefully trying to make it search engine friendly
preview page:
http://localhost/phone/brand
full page:
http://localhost/phone/specs
sample link:
NOKIA-3210
Then specs/full page will get the "nokia-3210" string from the url to use in the wp query. but this redirect me to 404 page.
How can I go about fixing this? I've read that this can be fixed using .htaccess also rewrite_api, I'm lil confuse what to use. Any help to point me to the right direction?
I've never done this but I would guess some changes in the htaccess file would be required to force all visits onto the specs page itself and not treat nokia-3210 as a post/page.

Wordpress url not including category on main page

I am new to wordpress so trying to figure out something which I cannot and asking you guys. Please help if you know.
I have issues with URL formation in Wordpress. I want to show articles' category name in URL, so I am using Permlinks -> custom structure which is like /%category%/%postname%.htm I then pasted code given by WP in .htaccess file. So now articles use http://mysite/category1/article1.htm URL.
But then on index.php any links inside article shows URL ashttp://mysite/article2.htm and hence 404. I am using >Article2 inside a post. If I open http://mysite/category1/article1.htm then above link will show as http://mysite/category2/article2.htm which is the correct URL.
Can someone plese help me figure out correct way? Using above configuration, it works fine for all links when open individual posts but only main index.php does not include category name. Just to note, URLs in Recent Posts also show correct URL.
If the links are hardcoded inside the article itself, there's nothing inside WordPress PHP or settings to change. You just need to edit the post content and update the HTML link URLs using the new permalink structure, within Posts and/or Pages tab.
You can also try a plugin like Redirection which will redirect old post permalinks to the new (correct) permalink format.
http://wordpress.org/plugins/redirection/

Changing a permalink in wordpress?

I have a post in wordpress. I changed its permalink. Previously it was:
http://example.com/foo/dogs-so-awesome/
and I change the permalink to:
http://example.com/foo/dogs/
I was expecting the old url to no longer work, but I can still hit it from a web browser and see the page. The new url works, too. Is wordpress doing a redirect here? I'd actually like to remove the old url so it 404s when someone tries to hit it. But I can't find anything in the wordpress admin interface that suggests how to do that.
Thanks
Did you change the title of the page? or the permalink?
If you changed the "title" of it, then the page will be titled dogs, but the permalink will still be dogs-so-awesome. Just underneath the title is the permalink with an "Edit Permalink" option. Use that.
If you want to 404 it, you could use something (possibly the Page Links To plugin) and create a post at dogs-so-awesome and 404 it.

Wordpress - Page Aliasing

I don't know why I am having difficulties finding an answer for this, but I was. I am hoping it's quick and painless.
This is my first attempt at a WordPress site. I created a number of pages which reside in a standard navigation. Currently the nav links look like such:
?page_id=2
I want link to be friendly such as:
/restaurant/
I went into the permalinks and tried messing around with the options and I got the URLs to change but on click I get a 404. What am I doing wrong?
two things i could think of
Wordpress can't write the .htaccess file (a warning should be displayed on the permalink page). In that case update it by hand with code shown on the site.
mod_rewrite is disabled on your server http://httpd.apache.org/docs/current/mod/mod_rewrite.html

Resources