| |
|
| :: |
| Author |
Message |
googleandroid
Joined: 04 Dec 2007 Posts: 3
|
Posted: Tue Dec 04, 2007 11:46 pm Post subject: The MOD is not working at all. The url's are not rewriting. |
|
|
I installed the mod and i was making some new forum posts and the url's were still like viewtopic.php?f=3 etc etc etc.
Yes i cleared the cache.
I think it's to do with my htaccess file. My htaccess file before I installed the mod was this:
| Code: | <Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^iphone3g.googleandroid\.info [NC]
RewriteRule ^(.*) http://www.iphone3g.googleandroid.info/$1 [L,R=301]
</IfModule> |
I needed this code to make my forum display the WWW, otherwise it would only display http://iphone3g etc etc.
So I took this code out of my htaccess file and replaced it with the code the mod generated, but the mod was still not rewriting.
I tried all the "more options" settings but it still isn't rewriting.
I even tried putting the code generated underneath my previous code but then i got an error.
Here is the Basic code the mod generated for me Without the "more options":
| Code: | # Lines That should already be in your .htacess
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
# You may need to un-comment the following line
# Options +FollowSymlinks
# REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
RewriteEngine On
# REWRITE BASE
RewriteBase /
# HERE IS A GOOD PLACE TO ADD THE WWW PREFIXE REDIRECTION
#####################################################
# PHPBB SEO REWRITE RULES - ADVANCED
#####################################################
# AUTHOR : dcz www.phpbb-seo.com
# STARTED : 01/2006
#################################
# FORUMS PAGES
###############
# FORUM INDEX REWRITERULE WOULD STAND HERE IF USED. 'forum' REQUIRES TO BE SET As FORUM INDEX
# RewriteRule ^forum\.html$ /index.php [QSA,L,NC]
# FORUM
RewriteRule ^[a-z0-9_-]*-f([0-9]+)(-([0-9]+))?\.html$ /viewforum.php?f=$1&start=$3 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER
RewriteRule ^[a-z0-9_-]*-f([0-9]+)/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^announces/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^[a-z0-9_-]*/?[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# POST
RewriteRule ^post([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L,NC]
#PROFILES
RewriteRule ^member([0-9]+)\.html$ /memberlist.php?mode=viewprofile&u=$1 [QSA,L,NC]
# THE TEAM
RewriteRule ^the-team\.html$ /memberlist.php?mode=leaders [QSA,L,NC]
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES
# FORUM WITHOUT ID & DELIM
# THESE FOUR LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^[a-z0-9_-]+(-([0-9]+))?\.html$ /viewforum.php?start=$2 [QSA,L,NC]
# END PHPBB PAGES
##################################################### |
This code does absoultely nothing.
Here is the code With "more options":
| Code: | # Lines That should already be in your .htacess
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
# You may need to un-comment the following line
# Options +FollowSymlinks
# REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
RewriteEngine On
# REWRITE BASE
RewriteBase /
# HERE IS A GOOD PLACE TO ADD THE WWW PREFIXE REDIRECTION
#####################################################
# PHPBB SEO REWRITE RULES - ADVANCED
#####################################################
# AUTHOR : dcz www.phpbb-seo.com
# STARTED : 01/2006
#################################
# FORUMS PAGES
###############
# FORUM INDEX REWRITERULE WOULD STAND HERE IF USED. 'forum' REQUIRES TO BE SET As FORUM INDEX
# RewriteRule ^/forum\.html$ index.php [QSA,L,NC]
# FORUM
RewriteRule ^/[a-z0-9_-]*-f([0-9]+)(-([0-9]+))?\.html$ viewforum.php?f=$1&start=$3 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER
RewriteRule ^/[a-z0-9_-]*-f([0-9]+)/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^/announces/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^/[a-z0-9_-]*/?[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# POST
RewriteRule ^/post([0-9]+)\.html$ viewtopic.php?p=$1 [QSA,L,NC]
#PROFILES
RewriteRule ^/member([0-9]+)\.html$ memberlist.php?mode=viewprofile&u=$1 [QSA,L,NC]
# THE TEAM
RewriteRule ^/the-team\.html$ memberlist.php?mode=leaders [QSA,L,NC]
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES
# FORUM WITHOUT ID & DELIM
# THESE FOUR LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^/[a-z0-9_-]+(-([0-9]+))?\.html$ viewforum.php?start=$2 [QSA,L,NC]
# END PHPBB PAGES
##################################################### |
Again this code did absolutely nothing.
Does anyone know how I can make this mod work? |
|
|
| Back to top |
|
 |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3477
|
Posted: Wed Dec 05, 2007 1:51 pm Post subject: Re: The MOD is not working at all. The url's are not rewriting. |
|
|
It's not the .htaccess to rewrite the urls.
Have you activated URL rewriting in ACP ?
Followed all of the 10 install steps ?
| install wrote: | ________________________________________
>>>> INSTALLATION INSTRUCTION <<<<<
________________________________________
___________
IMPORTANT :
________________________________________
Before you start, read this with caution.
=> For a smooth install :
1) Backup all your files;
2) Apply the mod code changes on copies of your files;
3) Upload all files;
4) CHMOD the phpbb_seo/cache/ folder to 0777;
5) Empty the phpBB/cache/ folder : just delete all files EXCEPTS the .htaccess.
6) Go to -www.yoursite.com/phpBB/phpbb_seo/phpbb_seo_install.php and follow the install instruction
7) Go to phpBB ACP : It's now time to play with settings described bellow;
8 ) Generate your personalized .htaccess and upload or move it following the instructions;
9) Test a rewritten URL, such as -www.yoursite.com/phpBB/post1.html, if you end up with a 404 (not a phpBB message), go back to step 8;
10) Activate URL rewriting in phpBB ACP and allow yourself some auto-congratulation  |
________________________________________ |
_________________ phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible ! |
|
| Back to top |
|
 |
dscurlock
Joined: 14 Dec 2007 Posts: 7
|
Posted: Fri Dec 14, 2007 3:24 am Post subject: Re: The MOD is not working at all. The url's are not rewriting. |
|
|
| SeO wrote: | It's not the .htaccess to rewrite the urls.
Have you activated URL rewriting in ACP ?
Followed all of the 10 install steps ?
| install wrote: | ________________________________________
>>>> INSTALLATION INSTRUCTION <<<<<
________________________________________
___________
IMPORTANT :
________________________________________
Before you start, read this with caution.
=> For a smooth install :
1) Backup all your files;
2) Apply the mod code changes on copies of your files;
3) Upload all files;
4) CHMOD the phpbb_seo/cache/ folder to 0777;
5) Empty the phpBB/cache/ folder : just delete all files EXCEPTS the .htaccess.
6) Go to -www.yoursite.com/phpBB/phpbb_seo/phpbb_seo_install.php and follow the install instruction
7) Go to phpBB ACP : It's now time to play with settings described bellow;
8 ) Generate your personalized .htaccess and upload or move it following the instructions;
9) Test a rewritten URL, such as -www.yoursite.com/phpBB/post1.html, if you end up with a 404 (not a phpBB message), go back to step 8;
10) Activate URL rewriting in phpBB ACP and allow yourself some auto-congratulation  |
________________________________________ |
I think i followed all the steps, but something is wrong..
http://www.businessmarketingforum.com/
You can see the html on suggestions/feedback, but if
you click the forum, it goes page not found.
any ideas?
Thank-You |
|
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3477
|
|
| Back to top |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|