phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
rewrite portal pages

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » Apache mod Rewrite
::  
Author Message
coyote
phpBB SEO Team
phpBB SEO Team


Joined: 11 May 2007
Posts: 72

rewrite portal pagesPosted: 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
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

rewrite portal pagesPosted: 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 Wink

++

_________________
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
Visit poster's website
coyote
phpBB SEO Team
phpBB SEO Team


Joined: 11 May 2007
Posts: 72

rewrite portal pagesPosted: 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. Embarassed
Back to top
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » Apache mod Rewrite
Page 1 of 1

Navigation Similar Topics

Jump to: