Here’s a possibly simple solution, using an ancillary table, and user-defined short slugs:
create a post_meta “short_slug” when creating a post, the link-name from your example
on save_post,
if (meta_key=’short_slug’ and is_a_valid(meta_value))
wpdb->insert into short_slugs_table slug,permalink ,
your index.php on your mgscr.com could then open a mysql connection to the same db, parse the url and do a Location:redirect.
Related Posts:
- Will references to ugly links automatically redirect to their pretty url permalink?
- WP Login forms action URLs displayed as pretty URLs in browser (ex with Restore Password)
- Sub domain redirection to taxonomy
- Server (WordPress) redirects files that are not supposed to (using htaccess)
- Alias ‘wp-content’ directory to something shorter (framework?)
- Is there a ‘rake routes’ for wordpress?
- add_rewrite_rule fro html to another url not working
- WordPress redirects non-existing url to existing ones – how to disable
- How to disable URL rewriting for specific URLs?
- How do I display only the parent page in the url
- Wildcard forward all posts and pages with few exceptions
- How to redirect large amount of URLs?
- Is WordPress API visible from PHP file called in htaccess
- Redirect to new domain that serves new and different content
- taxonomy term in URL slug won’t forward to the correct term for custom post like it does for default categories/normal posts
- Use a template file for a specific url without creating a page
- Using custom/dynamic “slug” for a page
- add_rewrite_rule: $matches var not replaced by captured value
- Custom slug in front of search URL
- Display posts with author in the url with custom post types
- Clash of the rewrites
- How do I add a add_rewrite_rule without it redirecting?
- How to create a specific frontend URL (not a Page) from a theme or plugin?
- Appending numbers to url do not break the link
- Tricky URL rewrite with custom values in url
- WordPress 404 unless there is a space in url
- redirect 301 old url to new url
- Add a query string to ALL links on site
- Add rewrite rule for rewrite endpoint
- Migrating a page to be an article
- Allow single quote in URLs
- Changing WordPress blog name and web address
- How to get “extended” path info from URL in a plugin
- How to perform a query at the URL?
- Custom URL rewrite to specific page template
- Is there a way to create alias without using htacess, permalinks or delving into code?
- Remove Query String from URL on Redirect – Redirection Plugin
- Creating a dynamic URL structure
- Double domain name in category URL-s
- Rewrite Preview URL to include index.php
- How to rewrite url wordpress?
- Can I change default registration link (without htaccess)?
- Rewrite custom post type URL parameters
- How to remove wordpress directory slash
- A clean custom rewrite rule for weekly archives
- Redirect HTTP to HTTPS for all sub domains (blog posts)
- I want to add a new tag to WordPress URL permastruct
- Change pagination url format
- Why is WordPress rewriting absolute URLs on staging site to include staging prefix when we manually point them at the live site?
- React Router with WordPress
- How to redirect a link to a new link?
- 301 Redirect all posts urls from .html to / (without .html)
- Rewrite /category/cars into /topics/cars
- URL renaming issue
- Adding a query string to only one page url
- custom wordpress rewrite
- Redirect htaccess [closed]
- Two sets of url one content?
- How to customize sub-URLs in a wordpress website (.htaccess)
- Custom permalink structure with %postname% in front of domain name
- Weird characters behind every single link and images
- How to use wp rewrite to hide form action url?
- Rewriting a date hierarchy into a ‘yyyy-mm-dd’ slug
- How to Force WWW. in Domain With WordPress MU Domain Mapping Plugin?
- custom url – add attachment’s id or name after post
- How are rewrite rules applied in WordPress?
- remove archive from url :: marketpress
- When i try to enter subdomain i’m redirected to main domain
- dynamic URL rewrite
- add_rewrite_rule with optional parameters
- Redirect users with “.” (dot) in their username and replace with “-” (dash) to correct profile
- Append a parametter at first or last to a certain URL
- Allowing multiple URLs for same Post
- How to create dynamic URLs on WordPress?
- Redirect empty search to another page
- Dynamic URL with rewrite rule not working
- i want to change URL of WordPress image or rewrite in runtime
- Remove part from dynamic url and redirect
- How to Update / Change URL when Popup Modal Loads?
- Passing a variable to hyperlink text?
- Fresh install redirects to www, breaking page loads
- Param causing 404
- Root-relative paths being rewritten on ‘Edit Page’ [closed]
- How to remove Base URL Duplication?
- Any way to make Apache’s internal redirect work?
- Get parameters and custom page template
- Direct Dynamic URL in root to a location within template
- Error 404 wordpress redirecting URL
- Remove Page Slug from URL
- URLs ending with number higher than 2147483647 redirects to to domain.com/2147483647
- How to prevent URL-modification when page title contains digits only?
- How to exclude my home page from url of my internal pages?
- WordPress 3.0 Multisite – Child sites and backends appearing blank
- How do I display a friendly URL link in the frontend?
- How to change search url produced by ‘s GET method?
- Please give me the rewrite rules for my ugly urls
- Lost WordPress website access after changing URL [closed]
- Spurious URL structure (Adding extra /0/s)
- Using .htaccess to redirect /da/ to / in URL
- WordPress is adding pagination for all pages like www.example.com/page/123. How to remove that?