In wordpress i have created a custom page called mail.php inside a folder form_support, my original url is http://exemple.com/form_support/mail.php i created htaccess file with rewriting rule :

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^mail$ /form_support/mail.php [L]
# END WordPress

i upload the htaccess file inside the folder form_support but when i call the mail.php page i dont get the rewrite url as mentioned above


is there any thing i have missed ?

my files

    - mail.php
    - .htaccess

You don't need to create a folder.

And create a file inside your theme with starting content of following one

      Template Name: Mail Page 
      // here your mail page content. 

Now goto backend and pages-> Add New. Title your page and select a Template Mail Page.

Now you can write your code on the template file. It will take effect.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.