PHP URLs

Discussions about the phpBB2 Forum. How to get the best from this powerful script.

Moderator: Moderators

PHP URLs

Postby Aliniuz » Sat Jan 27, 2007 12:27 pm

What do I have to do so that I get rid of the php url , when I try to acces a x.html file it says that the x.PHP file wasn't found (404) . I don't know what to do ...

Here is my .htacces file .
Code: Select all
<Files config.php>
Deny from all
</Files>

<files archive>
  ForceType application/x-httpd-php
</files>

DirectoryIndex index.html index.htm index.php

RewriteEngine On

# SEO URL [mgutt]
RewriteRule !\.html$ - [L]
RewriteRule ^[a-z0-9-]+-([pt])([0-9]+)\.html$ /viewtopic.php?$1=$2 [L]
RewriteRule ^[a-z0-9-]+-f([0-9]+)\.html$ /viewforum.php?f=$1 [L]
RewriteRule ^[a-z0-9-]+-c([0-9]+)\.html$ /index.php?c=$1 [L]
RewriteRule ^[a-z0-9-]+-u([0-9]+)\.html$ /profile.php?mode=viewprofile&u=$1 [L]
RewriteRule ^([a-zA-Z0-9_]+),([^/,]+),([^/,]*)([^/]*\.html)$ $1$4?$2=$3 [QSA,N]
RewriteRule ^[a-z0-9-]+-([pt])([0-9]+),([^/,]+),([^/,]*)([^/]*\.html)$ viewtopic$5?$1=$2&$3=$4 [QSA,N]
RewriteRule ^[a-z0-9-]+-f([0-9]+),([^/,]+),([^/,]*)([^/]*\.html)$ viewforum$4?f=$1&$2=$3 [QSA,N]
RewriteRule ^([a-zA-Z0-9_]+)\.html$ /$1.php [L]


If this SEO URLs MOD its not good enough than what Seo MOD do you highly recomend me for my board ( www.galatiforum.com ) ?
Aliniuz
 
Posts: 38
Joined: Sat Jan 06, 2007 6:37 pm

Advertisement

Postby dcz » Sat Jan 27, 2007 12:58 pm

Well, we're not really providing support for SEO url v2 here.

Besides, your board does not use url rewriting so far, so it looks like SEO URLv2 was not installed yet, or was but removed, or is only rewriting URLs for guests.
As -http://www.galatiforum.com/feedback-and-regulament-f12.html is working

My advise would be for you to migrate to the phpBB SEO mixed or advanced mod rewrite.

To do so, you'll just need to uninstall SEO URL v2, but keep it's rewriterules.
Then install the chosen phpBB SEO mod rewrite and implement it's rewriterules before the SEO url v2 ones.

And install the corresponding zero dupe to HTTP redirect all URLs to the phpBB SEO mods ones ;)

It's rather easy to do, but you'll need to cautiously follow the install steps and check everything works nice before you'll say it's all working, especially the zero dupe headers.

++
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: 21379
Joined: Fri Apr 28, 2006 9:03 pm

Postby Aliniuz » Sun Jan 28, 2007 11:20 am

I installed Mixed rewrite MOD and now the urls are clasic ... viewforum.php?f=x .

I did all modifications, i unnistalled SEO URLS ...

My .htacces file is unchanged . I tryed to put the rewriterules of mixed rewrite but it not worked .

I'm desperate, what should I do ?
Aliniuz
 
Posts: 38
Joined: Sat Jan 06, 2007 6:37 pm

Postby dcz » Sun Jan 28, 2007 12:22 pm

Are the php code changes implemented right now?

It's almost impossible that no links are rewritten within phpBB.

My advise, do some local testings to find out a bit more about the codes changes and to see it's working.

Then, for the .htaccess, it will work, as your server is accepting mod_rewrite.

So if you want to use the mixed mod rewrite, please post in the mixed mod rewrite forum, you'll get help.

It's really easier to do one thing at a time ;)
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: 21379
Joined: Fri Apr 28, 2006 9:03 pm


Return to phpBB2 Forum

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: Google Feedfetcher and 4 guests