How to change default post url in Wordpress? - wordpress

not sure how to get around this one. Anyways so I am working on a WP blog http://athenasweb.com
However every post I make the url is not athenasweb, but instead 1and1's default URL before the domain name was switched over:
http://s433108212.onlinehome.us/
This is really annoying especially when linking to new posts, anyway to change this in wordpress?
Example this: http://s433108212.onlinehome.us/aspectarian-nov-2nd-nov-8th-2012/
Should be http://athenasweb.com/aspectarian-nov-2nd-nov-8th-2012/

Go to general settings and make sure the wordpress address and site address match what you want it to be.

Related

Wordpress loading post based on query (URL) automatically

I am sure I am going to sound the newb here, but this is something I have not noticed up till now with all the work I have ever done with WordPress.
Today I noticed that if I even if I only enter a portion of a post's name in the URL query, WordPress will try to find and show a matching post. For example, if I go to:
example.com/about
It will take me to:
example.com/about-us (which is the correct post name).
Another example, is if I go to:
example.com/priv
WordPress takes me:
example.com/privacy-policy
Did WordPress always do this? If so, then I never noticed (and will sound dumb asking this). I assumed it would give me 404 if the post name in the query was not found.
Cheers

Is it possible to automatically add a slug to an already existing URL once permalink structure has been changed?

I am running a website in which the different posts all have an associated category: let's say, news, reviews, videos, etc.. We want to change how URLs are generated to incorporate the category before postname.
I will put an example:
old url: https:///www.myweb.com/amazing-new-car (with category in the post being news)
new url: https:///www.myweb.com/news/amazing-new-car (with category in the post being news)
I know how to do this by changing permalink structure in the wordpress settings to /%category%/%postname%/ but the problem is that this is applied to older entries too so when i try to access https:///www.myweb.com/amazing-new-car it gives me a 404 error. The problem here is that we have links to parts of our site sent to people, social networks and so and if they use them they will see this 404 error.
I've tried to use Redirection plugin to create a rule that can redirect old URLs to new URLs but it does not work (i've tried even wildcard redirection).
My question is: is there any way to do what i want rather than individual renaming of the links?
Thanks in advance, i hope i've explained well my problem
WordPress has all the tools necessary to make this change happen, and typically it does successfully redirect the slug from /slug to /news/slug
If you have added a category and haven't touched permalink settings, this is probably your problem.
Once you add a new category or post type into Wordpress, you should go into the Permalink settings and just click save. No need to change the settings if you are happy with them...

Is WordPress ignoring segments of Permalink?

I discovered a strange behaviour of WordPress in the usage of permalinks. On my local machine set the permalinkstructure to:
/%test%/%year%/%monthnum%/%day%/%postname%/
The first part, "test" is a custom taxonomy.
This results in the following working linkstructure.
http://localhost:8080/reisbowl/2021/06/22/c/
But also, when use the url,which does not exist, the link is working and showing me the correct post "c".
http://localhost:8080/hamburger/2021/06/22/c/
How is that? Is WordPress ignoring the custom taxonomy segment in the permalink or everything but the title?
The question poped up because i have to rename the "reisbowl" tag (just an example) to something else and secure the redirection to the new url. But it seems that this is not any issue.
But why? I just want to understand that.

Set the permalink to any domain in Wordpress

Is this possible to achieve without too much effort or a plugin? It's simply to instantly redirect to a site I've made in my portfolio if the post doesn't have any content.
Note that I don't want a script in the actual post to redirect since I only use Wordpress as the backend and fetch all the data to be used by a JavaScript backbone app.
EDIT : Added some extra info in a comment
Short Answer: No. You cannot set your Post Permalink to an external asset without directly editing the database.
Long Answer: First off, you need to understand the purpose of the Permalink. It isn't just an arbitrary link to somewhere. It's reserved specifically for storing where that specific post lives within the context of your Wordpress installation.
Your post doesn't live on example.com. It has its own ID, and Wordpress has a specific spot set aside for it where it can be seen on YOUR domain. Leave it as such.
Instead, what you should be doing is employing the tools Wordpress gives you to achieve what you want. A Plugin doesn't exist for what you want because - quite frankly - it's a fairly trivial task when approached CORRECTLY and doesn't warrant the use of an external resource.
So what's the correct way?
Use a Custom Field. Name your Custom Field something like 'externalHref' and fill that in with your link to the website you want to point to in case there's no post content.
Then in whatever templates you're using to generate your posts, just check either for the existence of your Custom Field called 'externalHref' or check for the non-existence of Post Content. In either case, instead of generating a link using The Permalink you can simply build a link that points to wherever you need.

Wordpress, two URLs for the same post

Is it possible to have two URL for a same post in wordpress.com?
One would be a short URL like
http://mydomain.com/28
and the other will be a SEO friendly one:
http://mydomain.com/28-this-is-the-post-about...
thanks
In wordpress, all posts are at the URL mywordpresshome.com/?p=xx where xx is the post ID number. Anything else involves mod_rewrite. WordPress will do one type of rewrite for you in the Admin section -- so you can pick either the short version or the long one above. In the Admin interface, it won't let you do both. But you could edit mod_rewrite yourself and effectively get both patterns -- short and long -- to work.
Here's info on mod_rewrite: http://www.workingwith.me.uk/articles/scripting/mod_rewrite
In the Settings->Permalinks part of the admin panel, you can set the look of your permalinks, but that doesn't mean the default dynamic links (yourblog.com/?p=5 or whatever) will stop working. You can use those links too and they will take you to the corresponding page. However, Wordpress will automatically substitute the dynamic link by its SEO-friendly alias.
I'm not sure whether it's possible to have two different aliases for the same post though.

Resources