Creating SEO on CMS

Discussions about Apache mod Rewrite, .htaccess, Use, experiences ... URL Rewriting.

Moderator: Moderators

Creating SEO on CMS

Postby JanoF » Sat Aug 05, 2006 9:11 am

Hallo,
I'd like oneself questioningly whether could oneself here found somebody who'd he knew repair optimalization for SEO upon this CMS - download
it is very simple CMS
Thanks
User avatar
JanoF
 
Posts: 43
Joined: Tue May 30, 2006 4:01 pm

Advertisement

Postby dcz » Sat Aug 05, 2006 10:06 am

I did not know about this one, do you have a server online so that we can see it working ?

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21238
Joined: Fri Apr 28, 2006 9:03 pm

Postby JanoF » Sat Aug 05, 2006 10:32 am

dcz wrote:I did not know about this one, do you have a server online so that we can see it working ?

++
webman.profitux.cz
User avatar
JanoF
 
Posts: 43
Joined: Tue May 30, 2006 4:01 pm

Postby dcz » Sat Aug 05, 2006 11:08 am

Interesting, unfortunately it does not seems to be translated.

Looking at the code it seems very doable to Search Engine Optimize it, but without at least an English translation (which I cannot make here), I don't think I'll do it.

Though, the project is interesting, do you know the developer ? Is there any community around this project ? Are there any translations available ?

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21238
Joined: Fri Apr 28, 2006 9:03 pm

Postby JanoF » Sat Aug 05, 2006 11:13 am

Yes I know a developer, but in translation this no. Here I am this gave only therefore that here’s phpbb-seo like this could maybe somebody scientist how then herein CMS
User avatar
JanoF
 
Posts: 43
Joined: Tue May 30, 2006 4:01 pm

Postby JanoF » Sat Aug 05, 2006 1:00 pm

Like this already this in the last analysis is, but has small problem namely such that doesn't know what how to do gap but "-" he can't use. He knew ought this like this re-do that oneself she could have use "-" ???


Code: Select all
RewriteEngine On
RewriteRule ^sekce-(.*)-(.*)\.html$ %{DOCUMENT_ROOT}/index.php?str=$2&tp=1 [L,QSA]
RewriteRule ^kategorie-(.*)-(.*)-(.*)\.html$ %{DOCUMENT_ROOT}/index.php?str=$2&tp=2&s=$3 [L,QSA]
RewriteRule ^clanek-(.*)-(.*)\.html$ %{DOCUMENT_ROOT}/index.php?articleread=$2 [L,QSA]
User avatar
JanoF
 
Posts: 43
Joined: Tue May 30, 2006 4:01 pm

Postby dcz » Sun Aug 06, 2006 3:39 pm

Again, I am not sure to get it all, but analysing your RegEx, I think (.*) should be replaced with (.+) to make the rules more strict here.

-(.*)- asks Apache to capture any amount of datas (whichever type and can be none) in between two hyphens ("-"), meaning -- (-nothing-) would be redirected, where -(.+)- is asking foar at least some content, meaning -- would not be redirected which is better.

Then, as a general guideline, I think you should specify the type of data waited for, using ([0-9].+) (again I use + instead of * to disallow the empty case) to capture integers and ([a-zA-Z0-9].+) to capture text and numbers when needed (depending on the var type in the php script).

And, as a general performance matter, I do prefer to work with numerical IDs than with titles.

For example if you set a php script like this :

Code: Select all
script.php?page=title-of-the-page


You could use a rule like this :
Code: Select all
RewriteRule ^([a-zA-Z0-9].+)\.html$ /script.php?page=$1


To allow the use of this title-of-the-page

But this would not allow you to maintain two pages with the same title, and would lead to much longer SQL selects as there is no way to go faster than to select on a numerical index.

So I'd better go for such scripting from scratch if the script is supposed to host a large amount of different pages (such as phpBB) :

Code: Select all
script.php?pageid=xx


You could use a rule like this :
Code: Select all
RewriteRule ^.+-id([0-9].+)\.html$ /script.php?pageid=$1


To allow the use of this title-of-the-page-idxx.html

Of course "id" can be here whatever, but small. It won't change much as far as being Ranked in Search engines, the "idxx" added part will not jeopardise this much your keyword density in URLs, but the fact that your site will be faster will help a lot ;)

As well, you can think of using "/" instead of "-" to separate the vars you capture.

Code: Select all
RewriteRule ^sekce/(.+)/(.+)\.html$


For example, as long as you make sure to output the correct links and to correctly link the images (relative path would be broken here).

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21238
Joined: Fri Apr 28, 2006 9:03 pm


Return to Apache mod Rewrite

Who is online

Users browsing this forum: No registered users and 4 guests