Find Jobs
Hire Freelancers

Wordpress Advanced Redirect with htaccess

$10-30 USD

In Progress
Posted over 10 years ago

$10-30 USD

Paid on delivery
A previous programmer helped me with this, but all URLs are reading as 404 even though I can see them in the browser. I THINK the solution for the rewriting of the URLS must be exclusively in the htaccess file. Example using this URL: [login to view URL] If you use Firebug, you'll see that this page give the error: "NetworkError: 404 Not Found - [login to view URL]" I believe this is do to the rewriting taking place inside the function file rather than in the htaccess file. The function reads like this: function my_page_template_redirect() { //is_page('') if(is_404()){ $p = preg_match('/\/clinical-trials\/(.*)-t-(.*)$/',$_SERVER['REQUEST_URI'],$matches); /*echo '123456'; print_r($p); print_r($matches);*/ if($p!== false && isset($matches[2])){ $_GET['id'] = $matches[2]; echo file_get_contents(home_url().'/clinical-trials/study-detail/?id='.$matches[2]); exit; } } } add_action( 'template_redirect', 'my_page_template_redirect' ); I've attached the [login to view URL] page which is the template used when going to /clinical-trials/study-detail/ Please help me clear the 404 error, because search engines aren't picking up my pages. THANK YOU!!!
Project ID: 5273174

About the project

6 proposals
Remote project
Active 10 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
6 freelancers are bidding on average $27 USD for this job
User Avatar
Dear Hiring Manager, Greetings I have gone through your project requirements and we have highly skilled and qualified team who own all the right credentials to execute this job in a very proficient manner as per your exact requirement. I am sincerely interested to discuss this Project with you, however to move forward I request you to please initiate to discussion so that I can reach you efficiently and can discuss the Project in more detailed manner. As I am having some doubts which I want to discuss with you .
$33 USD in 3 days
4.8 (32 reviews)
5.7
5.7
User Avatar
am an experienced CMS Developer and would like to be considered for your next job or project. I have been working as a Website developer for most of my career spanning many years and have worked for employers around the world. I have also worked as a CSS Programmer and a Graphic Design Designer. I also have experience and skills working with HTML and Joomla,Wordpress. If given a chance to work as an employee in your project I will produce positive results.
$25 USD in 3 days
5.0 (3 reviews)
0.9
0.9
User Avatar
Hello, I am a PHP developer with 10 years of experience. I have all required expertize for your project. I can do this project and assure you with quality results and on-time delivery. Before giving any firm quotation, I have few queries which I would like to discuss with you in detail. Let me know your availability for the same. Looking forward for your reply and hoping to have a long-term working relations with you. thank-you
$25 USD in 2 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED ARAB EMIRATES
Dubai, United Arab Emirates
5.0
89
Member since Dec 16, 2009

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.