Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-23-2012, 06:17 PM   PM User | #1
Hiroshi
New to the CF scene

 
Join Date: Apr 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Hiroshi is an unknown quantity at this point
Exclamation HELP: PHP redirect with url parameter on wordpress

Hello all,

Not sure if this should work with wordpress or not (or it may just be my lack of php knowledge). I got it to work on another non-wp site I built easily so I know the code is solid. It must be some sort of conflict with WP right?

Here is how it should work:

When a parameter is added to the url, example: http://www.mysite.com/?id=1234 it then redirects to a specific URL which is defined by "1234" on another website via a custom API.

first line of code on my index.php file is
PHP Code:
<?php include 'redirect.php'?>
which has all the info for the redirect its self.

I was thinking I would put the same line in root/index.php at the top and include redirect.php in the same folder and everything would work but it's not functioning. It's just returning a blank page :-/

Could it be because the wordpress index.php already has to call other wordpress files?

I'm completely lost. :-(

Any help would be greatly appreciated. I would also be willing to pay someone to fix this if required.

Thank you very much for your time.
Hiroshi is offline   Reply With Quote
Reply

Bookmarks

Tags
parameter, redirect, wordpress

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:39 AM.


Advertisement
Log in to turn off these ads.