| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
coyote phpBB SEO Team

Joined: 11 May 2007 Posts: 72
|
Posted: Mon Sep 17, 2007 10:23 pm Post subject: rewrite portal pages |
|
|
Here's one I bet you haven't come across (or maybe you have). I would like to rewrite portal pages like so:
-www.mydomain.com/index.php
to
-www.mydomain.com/forum.html
and
-www.mydomain.com/index.php?c=$1
to
-www.mydomain.com/{title injection}-c1.html (already done by adv mod rewrite)
and
-www.mydomain.com/portal.php
to
-www.mydomain.com/
and
-www.mydomain.com/portal.php?page=2
to
-www.mydomain.com/about.html
and
-www.mydomain.com/portal.php?page=3
to
-www.mydomain.com/mission.html
and
-www.mydomain.com/portal.php?page=4
to
-www.mydomain.com/contact.html
etc., etc.
What I'm trying to do is build a custom version of phpBB that would amount to a CMS and integrated forum for people who are unfamiliar with coding PHP and/or HTML, using IM Portal and Junior Admin mod.
I've already got advance mod rewrite installed and working correctly. Can I do this with .htaccess alone, and if so, how? Zero duplicates are also a must.
Edit: now that I look at this a little closer, I realize that I must also have title injection on each portal page...which is going to be kinda tough since I'm not sure that portal.php?page=$1 can even have its own title. |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
Posted: Tue Sep 18, 2007 11:22 am Post subject: Re: rewrite portal pages |
|
|
Well, URL rewriting does not only rely on the .htaccess and the rewriterules.
Actually, the rewriterules are only allowing our rewritten links to work, they do not alter the links outputted. This is to be done in the web site's script.
The URL standard you suggest is not the simplest, since you get rid of the page's IDs. It would be easier to use things like :
-www.mydomain.com/portal.php?page=4
to
-www.mydomain.com/contact-4.html
For example.
If you want, we can take a look at IM portal in the mods and code forum
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
coyote phpBB SEO Team

Joined: 11 May 2007 Posts: 72
|
Posted: Tue Sep 18, 2007 2:39 pm Post subject: Re: rewrite portal pages |
|
|
I understand what you mean about the ID #'s, and I see how you fixed the "links" and next time I'll do that. Sorry you had to go through all that and fix them. I should have known on an SEO site not to put 20 fake links.  |
|
|
| Back to top |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |