• I need to open this file that I’m creating something but it’s returning 404 page error.

    Something that I can add to htacces to ignore the 404 and open this file? I tried the rule below but it doesn’t work, in this case I have to open the URL like
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^states/(.*)/$ wp-content/plugins/elite/routines.php?state=$1 [QSA,L]
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Are you writing the plugin?
    Do you need to include or require that file into your code?
    You can’t just put a plugin file as a URL, with parameters. WordPress won’t do that, as you found out.
    What are you trying to accomplish?

    Thread Starter Cezar Ayran

    (@ayrancd)

    I just changed my folder to 755 and now I can open the file. Actually this is not a plugin but a code that I put inside that folder lol

    Thanks!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Opening .php file’ is closed to new replies.