WordPress.org

Ready to get started?Download WordPress

Forums

passing GET url, page not found (2 posts)

  1. iansane
    Member
    Posted 2 years ago #

    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: http://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

  2. iansane
    Member
    Posted 2 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags