0
votes
0answers
37 views

Get canonical link

Hi I know get_permalink returns the URL. Some of my posts are redirected and at the same time I update the canonical link to the redirected post URL - (normally relates to post updates). Is there a ...
0
votes
2answers
38 views

Is there a way to have wordpress 301 versus 302 urls by default?

Sorry if this is a duplicate but I didn't find my answer in "Questions that already have your answer". Currently on my site if I visit an old URL link or if I outright make up a URL like ...
0
votes
1answer
64 views

Add an access code form to call a unique page based on page without registration

I've seen some other questions similar but not the totally the same. If I missed in the search, please forgive me. However this what I have so far: I've created a form that has the following: an ...
2
votes
3answers
111 views

base directories / URL

Is there a way to handle base directories for taxonomies that result in a 404. For example my URLs are: http://skipology.com/category/... http://skipology.com/app/... but the taxonomies / base ...
0
votes
2answers
72 views

Preventing Canonical Redirect for CDN

I want to run my entire WordPress site through a CDN to improve performance (HTML, not just static CSS/JS/media). Lets say the origin server is example.com and www.example.com is the URL where traffic ...
0
votes
1answer
33 views

Rewrite rule for incoming urls

Part 1: How do I get people visiting my blog with http://example.com/archives/14073 redirect to http://example.com/?p=14073. Part 2: What about when the incoming link is like this: ...
0
votes
1answer
57 views

How to redirect homepage to actual URL?

I have a stupid problem. In the custom header template I include on all pages are some images. When I set the links to the images as images/image.png it works on the homepage but not on other pages. ...
0
votes
1answer
38 views

How can I replace my primary url globally with a parked one?

Ok so long story short, someone on our team accidentally got the domain we wanted booked on wordpress.com and not with a host for wordpress. ooopssss We've got a slightly inferior domain booked with ...
2
votes
1answer
45 views

Is there a 'rake routes' for wordpress?

Is there an equivalent to 'rake routes' in php/wordpress that would spit out all the available wordpress url paths available?
0
votes
2answers
912 views

How to redirect visitor to a custom URL using PHP code in functions.php

The users have to be redirected to a custom URL which I already know (its part of the programming logic). I just need to know which WP function to use/ what php code to use to redirect the user to the ...
1
vote
1answer
334 views

WP Login forms action URLs displayed as pretty URLs in browser (ex with Restore Password)

I would like to use the WP native login/register/restore password/.. functionality, but display pretty URLs instead of wp-login.php I've been looking at the core code and noticed that most login ...
4
votes
2answers
856 views

Catch 404 after changing permalink structure from /%postname%/ to /%category%/%postname%/

I made a site some time ago and after some days some posts were indexed by search engines. Today I changed the permalink structure from /%postname%/ to /%category%/%postname%/. After that, when ...
3
votes
1answer
566 views

Disable Wordpress URL auto complete

I recently noticed that Wordpress tries to auto-complete a URL when it's not submitted in its entirety. E.g. I have a post URL that looks like this: http://www.mysite.com/some-post-title If I ...
0
votes
2answers
74 views

Is Wordpress API visible from PHP file called in htaccess

I'm trying to add some rewriterules in the .htaccess file to deal with hotlinked images - specifically I want to add the URL from the post where the image appeared to the header location information ...
0
votes
1answer
435 views

How to Force WWW. in Domain With WordPress MU Domain Mapping Plugin?

I created a thread (How to make www. and no www. Go to same site, for all sites?) in the support forums for the WordPress plugin: WordPress MU Domain Mapping. Everything is fine and dandy. I have a ...
0
votes
1answer
242 views

How can I do a url redirect to include a wordpress username?

I currently have a button like this, that takes a user to their 'mentions' page <a href="http://my.url.org/mentions/<?php global $userdata; get_currentuserinfo(); echo( $userdata->user_login ...
0
votes
1answer
800 views

How to prevent automatic redirection?

Wordpress has a feature whereby it will automatically redirect your URLs if it percieves them to be written wrongly. Here is an example: I have a page called my-page If I go to: ...
4
votes
1answer
414 views

Add forward slash on categories url (serve one version of a url)

How can I a add forward slash on categories URLs and serve only that version of a category (meaning URLs not ending in forward-slash will redirect to URLs ending in forward slash). I manage to remove ...
2
votes
3answers
1k views

User redirect to destination URL after login

Scenario: if user not login, user redirect to customize login page and redirect again to destination page after login. I don't use a function or plugin. This code to restriction page: if ...
1
vote
2answers
737 views

WordPress 3.4 Permalinks Redirection Problem

A few years ago this was the permalink structure I had for my blog: /%year%/%category%/%postname%.html I changed these permalinks last year to this: /%category%/%postname%/%post_id%/ A plugin ...
0
votes
1answer
161 views

Wordpress permalink issue

If i try to access my wordpress page using the native url structure i.e. for instance: www.mywebsite.com/?p=123 I am redirected to my homepage. It doesn't seem to be an htaccess issue for I tried ...
3
votes
4answers
8k views

Redirect user to original url after login?

I have a function that redirects users to the login page (home) if they're trying to access any other page without being logged in, here's how it works: function restrict_access_if_logged_out(){ ...
0
votes
1answer
374 views

Wordpress 3.0 Multisite - Child sites and backends appearing blank

I've just installed wordpress on our Rackspace server - I've set wordpress up for Multisite as I have done many times before. The main wordpress site at the root functions fine - however when I add a ...
1
vote
3answers
279 views

URL redirect problem

I have 2 pages in my wordpress 3.0.1 site with 2 urls www.mysite.co.uk/sub-page/child-of-sub-page/accommodation/ and www.mysite.co.uk/accommodation/ however any link in my site to ...
5
votes
1answer
2k views

Changing attachment urls?

How can I change the format of attachment page urls from /[post-url]/[attachment-name]/ to /media/[attachment-name]/? I understand that I can override the output of get_attachment_link via the ...
1
vote
3answers
3k views

Creating 301 Redirects for Post, Page, Category and Image URLs?

I fear this may be too much to ask here, so if so, please feel free to tell me of another place to learn. Help with Redirections I'm cleaning up a badly developed site and migrating wordpress from a ...