url rewrite/custom 404
Posted: Fri Feb 09, 2007 1:15 pm
Hello,
I have a problem which I hope someone can cast some light on for me.
I have built a site and CMS which loads a page by template/page content pulled from the database.
So for example:
index.php would load the homepage
index.php?u=2 would load the about us page
index.php?u=3 would load what we do page and so on....
Hence all pages are delivered from one index page.
The CMS actually creates HTML links such as aboutus.html?u=2 and solution.html?u=8
What I want to achieve for SEO purposes, is for this 'dummy' URL to be written in browser address bar, but the actual page being linked to is - index.php?u=2
I have got my ISP to create a custom php 404 page.
Can this URL rewrite be achieved with PHP or do I have to use apache mod_rewrite????
Do hope you can help.
Cheers,
Neil.
I have a problem which I hope someone can cast some light on for me.
I have built a site and CMS which loads a page by template/page content pulled from the database.
So for example:
index.php would load the homepage
index.php?u=2 would load the about us page
index.php?u=3 would load what we do page and so on....
Hence all pages are delivered from one index page.
The CMS actually creates HTML links such as aboutus.html?u=2 and solution.html?u=8
What I want to achieve for SEO purposes, is for this 'dummy' URL to be written in browser address bar, but the actual page being linked to is - index.php?u=2
I have got my ISP to create a custom php 404 page.
Can this URL rewrite be achieved with PHP or do I have to use apache mod_rewrite????
Do hope you can help.
Cheers,
Neil.