• Hi,

    I have a custom script which redirects back to a wordpress page and needs to send several variables in the url. I’m not trying to keep pretty url’s for this but I have the permalink set to %post%.
    I tried
    header('Location: https://devIPAdress/mypage/?name=fred');
    But I get 404 page not found.

    The .htacces file only has the one rule

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /mysitedir
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    Is it necessary to mess with all the rewrite stuff since I’m not trying to pass vars like ‘mysite/mypage/var1/var2’ but just trying to use regular old GET vars?

    Thanks

Viewing 1 replies (of 1 total)
  • Thread Starter iansane

    (@iansane)

    I worked around it by using session to pass the data but would still like to know is this because of the way htaccess sends everything through index.php? Should I still be able to pass GET variables this way like I would in a regular web page?

    Thanks

Viewing 1 replies (of 1 total)
  • The topic ‘passing GET url, page not found’ is closed to new replies.