Either try placing an index.php file inside your subdomain folder with the following code:
<?php
header("HTTP/1.1 301 Moved Permanently");
header("Status: 301 Moved Permanently");
header("Location: http://www.my-domain.com/my-permalink/");
?>
or use cPanel to setup/redirect the subdomain to any address you want.
Related Posts:
- Subdomains to pages
- How can I add a page’s ID to its permalink using WP_Rewrite?
- Add prefix to page URL based on the page template
- Passing the JQuery string to Worldpress URL
- How are WordPress Page URLs affected by permalink settings?
- Custom permalink structure with %postname% in front of domain name
- Change all pages permalinks instead of hierarchical to have id of the page
- Is it possible to get a page link from its slug?
- How does WordPress handle permalinks?
- Creating custom permalink structure for languages
- How to add a custom URL placeholder to author archives?
- Passing variables through permalink structure
- permastruct for custom post type not working in one of four cases
- Make post slug have priority over category slug
- How to Remove Slug From Database?
- Remove subfolders from URL
- Remove parent slug for child pages
- Multisite wordpress and subdomain URL collisions
- flexible rewrite ‘ramble’ URLs with WordPress
- Change the custom post type permalink
- Auto 301 to full post permalink? (using /posts/%post_id%/%postname%)
- Relative or Absolute Paths for Flash Video Player Files
- How to Modify Existing Rewrite Rules?
- Image Attachment Url Rewrite
- Rewrite Page with a slug before page name
- Page Attachment Permalink Structure based on Menu Order?
- If the only permalink setting is %postname% what happens in the case of old duplicates?
- Change author slug and functionality
- Use Regular Expression to get tag from permalink url during wp_rewrite in generate_rewrite_rules
- Permalinks for pages
- remove sub-category of Custom Post Type from permalink structure
- WordPress Permalinks & Nginx Rewrite Rule Not Working
- How to redirect to correct pages after permalink structure change
- Moving local wordpress page to a real server subdomain broke my permalinks?
- How to remove specific category from URL in WordPress
- Need to add trailing slash to all internal links relative and absolute
- Custom permalink leads to index page
- Get the url of a page template without using the page slug and ID
- Permalinks 404 error with HTTPS host
- Mirror content based on URL slug
- How to change hierarchical page permalinks to be flat
- How to rewrite a URL to another rewritten URL without changing the address?
- How to use different domains for different blogs hosted in the same host in subdomains with .htaccess
- Permalink opens attachment instead of page
- wordpress how to replace url /bar with foo/bar for custom post type
- How Do I get the author’s page id?
- Getting back a permalink from custom url
- how to get a list of all top level pages
- Permalinks on Windows IIS not working and web.config breaks site – does wordpress not support windows server now, if so how?
- Order custom post type posts by custom field with pretty URL
- Show category name in the post URL only for specific categories
- Redirect From Url To Url
- Exclude single page from permalink rule
- Bulk append URL (add word to slug)
- help to remove last trailing slash using add_rewrite_rule
- How to use page jumps to top of banner and page title?
- Change permalink to attachment
- WordPress Page Not Found if Permalink Settings is Postname
- Why does enabling Permalinks make pages not found?
- Access posts while mod_rewrite is broken
- Problems with permalinks (.htaccess not working)
- Update page breaks permalinks
- WP as a CMS menu
- Make the blog page a child of another page and rewrite the blog url
- WordPress keeps removing query var from the URL
- How to construct a dynamic rewrite rule for child pages that passes more than one query var
- How can I access to the same post-type “page” from multiple different urls?
- Multiple URL rewrite rules and get every prams
- Passing parameter through permalink structure
- Add word to permalinks does not transform the urls
- Can I link to content dynamically from a page to a new page?
- How to make “single post” permalink maintain it’s sub-page structure
- append current user-id to all internal permalinks
- rebuilding/ rewriting a url to make it SEO friendly
- No Ones Been Able to Override my WordPress Rewrite Rule Issue!
- My permalinks for all pages and posts now include old page titles as parents/categories
- Page returns 404 for specific permalink
- Pagination links for taxonomy archive page 404 error on every page except first
- WordPress Pagination Custom Rewrite Rule for Pages
- How can I get .html URL suffixes in permalinks?
- Page permalink ending in “-2”
- rewrites and custom links in page need help with add_rewrite_rule
- Category-dependent custom permalink
- Change the permalinks structure
- How to create an IIS7 re-write rule for a single category
- All pages lead to home
- Although rewrite engine is on, I get 404 not found on every page
- Customized author slugs not working with get_author_posts_url method
- Remove index.php from WP 8.0 install migrated to IIS from Apache (still detecting Apache server)?
- ?posts_type=xxx not rewritten
- Custom permalink variable on single post
- Category pagination first link works, remaining don’t
- Permalinks of New Pages and their Parents
- region selection
- WordPress custom permalinks, pages are now 404
- Why doesn’t my page know it’s a page (won’t return true for is_page())?
- Include language variable in url
- Creating complex URLs with WordPress permalink structure
- Add additional URL variations for a Post
- How to make my custom permalink pull up the correct post