The problem is that Apache directs your traffic to the directory “peer” before WordPress is even loaded. You have two choices here. Either you edit the .htaccess to redirect the user to WordPress or you simply change the name of the directory and point the “peer.example.com” subdomain to that directory instead.
Related Posts:
- How to? Redirect /category/sci-fi/ to /category/scifi/?
- Catch 404 after changing permalink structure from /%postname%/ to /%category%/%postname%/
- Filtering categories in the permalink structure
- How to remove category from wordpress url?
- Multiple post categories – single permalink
- Preventing index.php?category_name=something from redirecting
- Add forward slash on categories url (serve one version of a url)
- 404 error on subcategory pages
- Categories’ hierarchy in URL
- Changing the category permalink structure
- How to: 301 Redirect /category/ to /customname/
- Auto 301 to full post permalink? (using /posts/%post_id%/%postname%)
- Exclude subcategories from the url
- How to display only the parent category in the permalink
- Plural Category Base Slug On Category Archive Page
- Using WP rather than .htaccess to redirect pages/posts
- How to set up Author archives with sub category URL
- force category base – archive pages work WITH & WITHOUT category base slug in url?
- Add “page-a” slug to category link if user visit category link from “page-a”
- Redirect category to url with /category
- Changing permalink from /postname/ to category/postname/
- One Specific Category To Permalink
- WordPress category page redirects in .htaccess not working
- Read GET parameters in APACHE Mod Rewrite rules for WordPress categories in Posts
- Redirect a Blogger Page URL to wordpress
- Mod_Rewrite to show only last subcategory in URL
- Permalinks: display just one kind of wp category in the posts url
- Multiple URL’s based on category for one post
- Remove subcategory and category with some rules from permalink
- Sub Categories Keep Redirecting to Pages With Same Slugs
- WordPress URL Rewrite for dynamic and customized URL
- Redirect single article permalink to paginated category page
- Custom permalink structure with %postname% in front of domain name
- Custom url structure – pages under a custom post type
- Category URL Management
- Need help with major category and permalink re-organization
- Redirect Problems with Archive Page and GET variables
- Using custom structure prefix showing 404 for sub-categories
- A different permalink structure for different categories
- How to set the same base url for two different taxonomies?
- Category URL’s 404 after setting category base to ‘.’
- Remove “category” from permalink with add_rewrite_rule
- Accessible Subcategory URL’s pages without using .php hack
- Catch 404 after changing permalink structure from /%postname%/ to /%category%/%postname%/
- Create monthly archive for parent category
- hierarchical taxonomy in permalinks? using same slug
- htaccess redirect for all categories converted to tags now showing 404
- Remove “?category=” in the URL wordpress ajax filter work for category
- Custom permalink structure leads to be 404 on pagination
- URL rewrite based on a custom field value
- How to exclude uncategorized from permalink structure /%category%/%postname%/
- Redirecting specific category posts to subdomain
- How to map permalinks with accented letters to sanitized slugs?
- Best and Cleanest way to remove /category/ from category permalinks? [duplicate]
- Combine Multiple Categories Into One URL Slug
- Random Alphanumeric Key URLs
- WordPress redirection problem after moving to a new server?
- Redirect Loop to Page, Can’t Find Origin, Can’t Remove [closed]
- Allow dot in wordpress permalinks (only for categories)
- How to get category URL with the slug?
- Need Help Correct Regular Expression Redirect Code
- Rewrite Preview URL to include index.php
- URL rewriting: removing the site’s basename for a specific category
- Redirecting all posts after changing URL structure with htaccess
- Redirect all posts permalinks from “.html” to “/”
- Remove the parent name from permalink
- Automatically redirect a page to a category that share the same slug
- WordPress alphabetical A-Z custom post type post result display
- Hierarchical permalink structure for posts showing categories and sub-categories
- Use the category name instead of category slug in permalinks
- Function to automatically rename the base category permalink
- How to rewrite wordpress search to work on specific category
- Use blog as base for tags and categories
- Redirect depending on category chosen
- Pagination breaks on child-categories, works fine on parent-category
- Is the part “category” fixed to an URL to an archive or post?
- prefix to post permalinks without affecting category permas
- How to add tags under categories
- remove SLASH on single_post but KEEP on categories and parent pages
- Get category base permalink
- How to remove parent category from child category url using wordpress rewrite rule?
- Wrong category in URLs accepted like the correct one
- Fresh install redirects to www, breaking page loads
- Change Category Base For Custom Post Type or Posts Page
- same permalink for parent category and child category
- Paginations in Category Page Leads to Sample Pages
- Once redirected by Rewrite rules, how can WordPress know the page?
- WordPress permalink still not working (error or not understood?)
- Modify / Rewrite single template url structure
- Most efficient use of custom taxonomies, categories, and pages
- Removing short versions of category archive URL
- My wordpress site must be being affected by outside sources [duplicate]
- What approach should I take for this URL structure?
- how wordpress generates permalinks as /%category%/%post%/
- 404 posts error after 301 redirection of changed category / tag base
- Custom EndPoint not working when strip child category in URL
- How to add custom prefix before category base for category page URL?
- Custom rewrite, url path with parameters to a page
- wordpress category rewrite rule with pagination
- Post pages are redirecting to the 404 page in wordpress