minibb®
Fight the automated spam - protect your miniBB-forums,
getting the Captcha addon! Click here to read more.
Captcha Addon for miniBB
Community Forum
 | Forums | File Bank | Sign Up | Reply | Search | Statistics | Manual |
How To miniBB Community Forum / How To /

PHP to HTML, Search Engine Friendly mod_rewrite HELP!! .php -> .html

 Page:  1  2  »» 
gariben
Forums Member
#1 | Posted: 10 Jun 2005 18:08
Reply 
I uploaded created a file called ".htaccess" and uploaded to the forum folder.

RewriteEngine On
RewriteRule ^([0-9]+)_([0-9]+)_([-0-9]+)\.html$ ./index.php?action=vthread&forum=$1&topic=$2&page=$3
RewriteRule ^([0-9]+)_([-0-9]+)\.html$ ./index.php?action=vtopic&forum=$1&page=$2
RewriteRule ^user([0-9]+)\.html$ ./index.php?action=userinfo&user=$1

Still it is still appearing as .php

I have a dedicated server and some domains already have mod_rewrite working so..I'm probably sure it's not server related.

Any help is greatly appreciated

Thanks,
Mike
Team
8-)
#2 | Posted: 10 Jun 2005 18:18
Reply 
$mod_rewrite=TRUE;

set this is setup_options.php
calcutta
Forums Member
#3 | Posted: 3 Feb 2006 05:02
Reply 
Hello MiniBB,

Kindly help me so that I can enable mod_rewrite into my forum.

Whenever I remove the // from $mod_rewrite in setup_options.php
it stops working.

It generates a URL http://www.allaboutsingles.com/advice1/1_0.html
but when someone clicks on it it shows "page not found".

Forum URL - http://www.allaboutsingles.com/advice1/

PHPinfo URL - http://www.allaboutsingles.com/advice1/phpinfo.php

Please please help me to fix this.
lime
Forums Member
#4 | Posted: 3 Feb 2006 05:04
Reply 
You also need to make a .htaccess file in your forums folder and put this text in it:

RewriteEngine On
RewriteRule ^index.html$ ./index.php?mdrw=on
RewriteRule ^manual.html$ ./index.php?action=manual&mdrw=on
RewriteRule ^([0-9]+)_([0-9]+)_([-0-9]+).html$ ./index.php?action=vthread&forum=$1&topic=$2&page=$3&mdrw=on
RewriteRule ^([0-9]+)_([-0-9]+).html$ ./index.php?action=vtopic&forum=$1&page=$2&mdrw=on

For more details see the manual
calcutta
Forums Member
#5 | Posted: 3 Feb 2006 06:19
Reply 
Sir, I have already tried to do so. It is not working at all.

Do I need to place the .htaccess in the folder where I have installed the forum or should I place it into the root folder?

Thank you very much for your kind attention.
marsbar
Associated Member
#6 | Posted: 3 Feb 2006 08:26
Reply 
According to the miniBB Manual, you will need to pop the .htaccess into the forum's root directory, not the web root.
All the best -
mb
Team
8-)
#7 | Posted: 3 Feb 2006 08:33 | Edited by: Team
Reply 
In general, you need to be sure mod_rewrite is enabled on your server. It's server built-in, and miniBB of course won't work if this module is not turned on in Apache, or some way limited for a virtual hosting.

But don't give us questions like "how can I enable it on my server"... we are miniBB support, not Apache support.

As you might see on our own forums, mod_rewrite IS functioning, so the problem is on your side.
calcutta
Forums Member
#8 | Posted: 3 Feb 2006 11:52
Reply 
Sir, mod_rewrite is enabled and I have seen it in phpinfo - http://www.allaboutsingles.com/advice1/phpinfo.php
. The mysterious things is that despite of mod_rewrite being enabled it is not working. any clue please?
Team
8-)
#9 | Posted: 6 Feb 2006 08:03
Reply 
Ask your provider.
ezkim0x
Forums Member
#10 | Posted: 17 Jul 2006 14:59
Reply 
I recently changed hosts.. and reinstalled everything, but I can't get mod_rewrite to work again.

I have wordpress installed as well, last time I had to put the mod_rewrite info in the same htaccess file as my wordpress, for it to work correctly.. I think it may just be something with my wordpress that is messing it up, but not positive.

one thing that's different about my new host is the mysqlhost isn't "localhost".. I have the correct hostname put in the setup_options.php though.

anyways do you know how to fix my problem?

you can see the forums here: http://jonindie.com/minibb/index.php

folders are:
jonindie.com/ (main folder where wordpress is & htaccess file)
jonindie.com/minibb (minibb main folder)

htaccess:

# BEGIN WordPress

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

# BEGIN minibb

RewriteEngine On
RewriteRule ^index\.html$ ./index.php?mdrw=on
RewriteRule ^manual\.html$ ./index.php?action=manual&mdrw=on
RewriteRule ^([0-9]+)_([0-9]+)_([-0-9]+)\.html$ ./index.php?action=vthread&forum=$1&topic=$2&page=$3&mdrw=on
RewriteRule ^([0-9]+)_([-0-9]+)\.html$ ./index.php?action=vtopic&forum=$1&page=$2&mdrw=on

# END minibb
Paul
CEO
#11 | Posted: 17 Jul 2006 15:13
Reply 
That's definitely a question you may ask your provider, not us.
ezkim0x
Forums Member
#12 | Posted: 18 Jul 2006 03:55
Reply 
...sorry
Anonymous
Guest
#13 | Posted: 6 Nov 2006 18:56
Reply 
I notice the links on this forum work, but on mine the links have a different structure.

The # links here show as:

/forums/2_3921_0.html#msg23623

The # links on my forum show as:

/forums/index.php?action=vthread&forum=17&topic=29&page=-1#msg173

How can I fix this?
Paul
CEO
#14 | Posted: 7 Nov 2006 03:40
Reply 
I guess, you have not enabled mod_rewrite mode.

http://www.minibb.com/forums/manual.html#mod_rewrite
Anonymous
Guest
#15 | Posted: 7 Nov 2006 09:51
Reply 
hmm, i enabled it but it loads pages that cant be shown. i get "page not found" error from my hosting. is there some other setting i need to check to make sure the page urls are set up properly?
 Page:  1  2  »» 
Your reply
Bold Style  Italic Style  Image Link  URL Link 


» Username  » Password 
You are welcome to post anonymously by entering a nickname with no password (if that nickname has not been taken by another member) or by leaving both fields empty. If you have a forums membership account, you can also sign in from this page without posting a message, or sign in and post at once.

Before posting, be sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.

 
Online now: Guests - 39
Members - 0
Most users ever online: 191 [24 Dec 2007 14:33]
Guests - 191 / Members - 0

Forums are powered by miniBB®