• Resolved chad20

    (@chad20)


    Hi everyone

    I’m struggling to add the .php extension to one of my pages (plugin page).
    I created a page like www.domain.com/dictionary and added the shortcode of my plugin.

    I found a plugin and a couple of code snippets which would add .php to my permalinks, but it adds the php-extension to all of the pages. Only one page needs to have the extension.

    The url of the page should basically look like this www.domain.com/dictionary.php. The file dictionary.php doesn’t really exist. A RewriteRule in the htaccess only redirects to dictionary.php which leads to a 404 because the file doesn’t exist.

    • This topic was modified 4 years, 9 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator t-p

    (@t-p)

    I found a plugin and a couple of code snippets

    I recommend asking at that plugin’s support so the plugin’s developers and support community can help you with this.

    Thread Starter chad20

    (@chad20)

    Hi @t-p
    The plugin is developed by myself 🙂

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

The topic ‘Adding .php only one page (permalink)’ is closed to new replies.