Forums

permalink cause $_GET and $_POST to not work (1 post)

  1. asecaida
    Member
    Posted 1 month ago #

    So if I disable permalinks everything works fine. But I would rather have permalink enabled. Basically I enable permalinks with this structure, /%category%/%postname%

    It creates my .htaccess file and this is it;

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    And then when I try to call $_GET or $_POST after I submit a form;

    if ($_GET['numofpost']) {
    	$showpost = $_GET['numofpost'];
    }else{
    	$showpost = 6;
    }

    it's empty

    Also if I do a var_dump($_GET), its empty
    Is something wrong with my .htaccess file?
    Thanks!

Reply

You must log in to post.

About this Topic