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!!!
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 .
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.
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