Title: game page permalink problem
Last modified: November 2, 2024

---

# game page permalink problem

 *  [Sean Thompson](https://wordpress.org/support/users/seanthompson/)
 * (@seanthompson)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/game-page-permalink-problem/)
 * Hi,
 * I have the game schedule table displayed with the shortcode.
 * There’s a problem with the game time that’s linked to the game page. The link
   in the table doesn’t include /lm-game/ and returns a 404 error.
 * I noticed on your examples page it’s the same, but theres a redirect to /lm-game/
   that happens.
 * I tried removing /lm-game/ with a rewrite rule in .htaccess just like removing/
   category/ and it didn’t work for some reason.
 * Thanks in advance, Sean
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgame-page-permalink-problem%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Oscar Liam](https://wordpress.org/support/users/oscarliam/)
 * (@oscarliam)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/game-page-permalink-problem/#post-18147772)
 * Hi Sean,
 * It seems like the issue is related to how your permalink structure is set up 
   for your [sports](https://modfcmobile.com/) game schedule. The `/lm-game/` prefix
   is likely being generated by your plugin or custom post type settings. Here are
   a few steps to troubleshoot and resolve this issue:
 * **Check Permalink Settings:**
    - Go to your WordPress dashboard, navigate to _Settings > Permalinks_, and resave
      the settings. This often flushes the rewrite rules and can resolve permalink-
      related issues.
 * **Rewrite Rules:**
    - If you’re modifying the `.htaccess` file, ensure the rewrite rule explicitly
      accounts for the `/lm-game/` prefix. Double-check the syntax and confirm there
      are no conflicts with existing rules.
 * **Redirect Configuration:**
    - If the redirect works on the examples page, inspect the server configuration
      or plugin handling those sports game links. A plugin like _Redirection_ can
      help manage and troubleshoot these links.
 * **Plugin Documentation:**
    - Refer to the plugin’s documentation for any custom settings related to URL
      structures or slugs. You might need to adjust the slug for the custom post
      type responsible for the `/lm-game/` links.
 * **Custom Functions:**
    - If needed, you can use the `add_rewrite_rule()` function in your theme’s `
      functions.php` file to map the desired URL structure directly.
 * Feel free to share more details or the specific plugin you’re using for further
   assistance!
 * Best regards,
   Oscar Liam
 *  Thread Starter [Sean Thompson](https://wordpress.org/support/users/seanthompson/)
 * (@seanthompson)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/game-page-permalink-problem/#post-18148793)
 * Simple fix…
 * In mstw-lm-utility-functions.php I changed line 1933 from…
 * `$href = get_site_url( ) . "/" . $game->post_name;`
 * to…
 * `$href = get_site_url( ) . "/lm-game/" . $game->post_name;`

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘game page permalink problem’ is closed to new replies.

 * ![](https://ps.w.org/mstw-league-manager/assets/icon-128x128.png?rev=1339900)
 * [MSTW League Manager](https://wordpress.org/plugins/mstw-league-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mstw-league-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mstw-league-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/mstw-league-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mstw-league-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mstw-league-manager/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Sean Thompson](https://wordpress.org/support/users/seanthompson/)
 * Last activity: [1 year, 6 months ago](https://wordpress.org/support/topic/game-page-permalink-problem/#post-18148793)
 * Status: not resolved