Welcome to the E-Blah Community!
We would like to welcome you to our community and invite you to register an account or login.
Being a registered member is important, as it gives you several advantages over the normal Guest status. After registering you will be able to download files and images, post messages, and access member-only portions of the forum - just to name a few. Registration is quick and simple, and only takes about a minute of your time.

E-Blah Community    Informational    Forum Updates  ›  mod_rewrite and E-Blah
Users Browsing Forum
No Members and 3 Guests

mod_rewrite and E-Blah  This thread currently has 10,463 views. Print
6 Pages 1 2 3 4 5 6 » Recommend Thread
Justin
September 5, 2005, 8:41pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,252
Gender: Male
Posts Per Day: 2.45
Reputation: 93.31%
Reputation Score: +307 / -22
Time Online: 39 days 5 hours 58 minutes
Location: Tallassee, AL
Age: 32
This thread explains how to have search engine friendly URLs for your forum ...

In the new Blah.pl there is the following two lines:

Code
$scriptname = 'Blah.pl';
$modrewrite = '?'; # mod_rewrite: on = ''; off = '?'


Change these lines to:

Code
$scriptname = '/forum/';
$modrewrite = ''; # mod_rewrite: on = ''; off = '?'


Notice that I used /forum/ for modrewrite. ?This is because I use a new directory called /forum/ which Apache uses to get /cgi-bin/bb/Blah.pl (nice, I know).

Here's the .htaccess file that is placed in the /forum/ directory:

Code
Options All Indexes
IndexOptions FancyIndexing

RewriteEngine On

RewriteBase /forum

RewriteRule ^(.*) /cgi-bin/bb/Blah.pl?$1


On my server (which uses cPanel) I had to enable indexing for the /forum/ directory (which is doesn't matter as ANYTHING in this directory will be tagged onto Blah.pl).

The way it works is /forum is the base and then in the RewriteRule (.*) is anything after /forum/ (ie: b=cc), that is in turn tagged into Blah.pl (/cgi-bin/bb/Blah.pl?b=cc).

I hope this is all clear.  P9.3 isn't set to release for quite some time.  But this *better* help search engine results for E-Blah and other forums.  


My Websites: Revolution Reality (My Blog)  | Portfolio

"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV

Revision History (4 edits; 3 reasons shown)
Justin  -  March 4, 2008, 2:24am
Justin  -  March 4, 2008, 2:08am
Justin  -  February 6, 2007, 5:51pm
Logged Offline
Site Site Private Message Private message
Justin
September 6, 2005, 8:31am Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,252
Gender: Male
Posts Per Day: 2.45
Reputation: 93.31%
Reputation Score: +307 / -22
Time Online: 39 days 5 hours 58 minutes
Location: Tallassee, AL
Age: 32
Someone with a busy forum -- PLEASE try this mod (ask me for the source code!)


My Websites: Revolution Reality (My Blog)  | Portfolio

"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV
Logged Offline
Site Site Private Message Private message Reply: 1 - 84
mealybar
October 6, 2005, 12:43pm Report to Moderator Report to Moderator

E-Blah Member
Posts: 190
Gender: Male
Posts Per Day: 0.04
Reputation: 100.00%
Reputation Score: +2 / -0
Time Online: 3 days 16 hours 24 minutes
Location: England
Age: 33
Did this mod get tested out? I note the url changes in my new 9.3 install, but have a few errors I think because my 'Blah.pl?' part of the url is still there?

Message Forum catagory doesnt always show when the board index is loaded. Press refresh and it all comes right again! Strange eh!

http://www.pigeonbasics.com/forum/blah/Blah.pl
Logged Offline
Private Message Private message Reply: 2 - 84
Martin
October 6, 2005, 1:10pm Report to Moderator Report to Moderator
Guest User
Have you edited your .htaccess to include

Code

Options All IndexesIndex
Options FancyIndexing
RewriteEngine On
RewriteBase /forumRewriteRule ^(.*) /cgi-bin/bb/Blah.pl?$1

Logged
Reply: 3 - 84
mealybar
October 6, 2005, 5:04pm Report to Moderator Report to Moderator

E-Blah Member
Posts: 190
Gender: Male
Posts Per Day: 0.04
Reputation: 100.00%
Reputation Score: +2 / -0
Time Online: 3 days 16 hours 24 minutes
Location: England
Age: 33
I hadnt, but I've now tried and cant seem to get the right folder to put it into. Tried both forum/, blah/, but only comes up with 500 errors. Any ideas?
Logged Offline
Private Message Private message Reply: 4 - 84
Justin
October 6, 2005, 6:39pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,252
Gender: Male
Posts Per Day: 2.45
Reputation: 93.31%
Reputation Score: +307 / -22
Time Online: 39 days 5 hours 58 minutes
Location: Tallassee, AL
Age: 32
Some servers are very trivial with mod_rewrite.  I don't know enough about mod_rewrite, truth be told.  I know that I keep my /forum/ directory clean (nothing but .htaccess is in it).  I keep everything else in /cgi-bin/{forum} directory.  Hope this helps?


My Websites: Revolution Reality (My Blog)  | Portfolio

"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV
Logged Offline
Site Site Private Message Private message Reply: 5 - 84
mealybar
October 6, 2005, 7:25pm Report to Moderator Report to Moderator

E-Blah Member
Posts: 190
Gender: Male
Posts Per Day: 0.04
Reputation: 100.00%
Reputation Score: +2 / -0
Time Online: 3 days 16 hours 24 minutes
Location: England
Age: 33
Think I'm muddled with where you put your htaccess, forum is a virtual folder already being rewritten to cgi-bin/bb/ ?

P.S the sitemap generator works a treat - well once I get these urls sorted out!

Oh aye, any thoughts on the problems with the category display? I've tried it on two different machines, firefox only seems to have the problem, but then a refresh sorts it out!
Logged Offline
Private Message Private message Reply: 6 - 84
Justin
October 6, 2005, 7:27pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,252
Gender: Male
Posts Per Day: 2.45
Reputation: 93.31%
Reputation Score: +307 / -22
Time Online: 39 days 5 hours 58 minutes
Location: Tallassee, AL
Age: 32
I have an update sitemap gen I should post ... it adds the dates so Google can index you better.    I'll post it soon.

If you PM me or IM me some FTP login info I'll try to fix it up for ya.


My Websites: Revolution Reality (My Blog)  | Portfolio

"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV
Logged Offline
Site Site Private Message Private message Reply: 7 - 84
mealybar
October 7, 2005, 3:43am Report to Moderator Report to Moderator

E-Blah Member
Posts: 190
Gender: Male
Posts Per Day: 0.04
Reputation: 100.00%
Reputation Score: +2 / -0
Time Online: 3 days 16 hours 24 minutes
Location: England
Age: 33
Think I got it working (the mod rewrite). The funny error thing, I think its in the login script, it redirects you to forum/blah//b=/m-//, so I think its the double forwardslash. Tried to find it in the code, but whatever I edit I get errors.lol
Logged Offline
Private Message Private message Reply: 8 - 84
Martin
October 7, 2005, 4:15am Report to Moderator Report to Moderator
Guest User
Make sure that in your Settings.pl $realurl does not have a backslash on the end

$realurl = "http://www.pigeonbasics.com/forum/blah";
Logged
Reply: 9 - 84
mealybar
October 7, 2005, 8:07am Report to Moderator Report to Moderator

E-Blah Member
Posts: 190
Gender: Male
Posts Per Day: 0.04
Reputation: 100.00%
Reputation Score: +2 / -0
Time Online: 3 days 16 hours 24 minutes
Location: England
Age: 33
Thanks, it didnt have a tralling slash; but when I pop one in it seems to use the correct urls now.

I'm still getting the message category not dispaying right, as I said it looks like only Firefox, but it clears up once you press refresh. I've tried it on a few different machines to see if it was just mine, but all same. I'll try and attach a photo of it.



Logged Offline
Private Message Private message Reply: 10 - 84
Justin
October 7, 2005, 10:21am Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,252
Gender: Male
Posts Per Day: 2.45
Reputation: 93.31%
Reputation Score: +307 / -22
Time Online: 39 days 5 hours 58 minutes
Location: Tallassee, AL
Age: 32
Yeah, that was an issue.  If you open up BoardIndex.pl you can remove all the <col> (I think that's it) and it should fix it for you.


My Websites: Revolution Reality (My Blog)  | Portfolio

"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV
Logged Offline
Site Site Private Message Private message Reply: 11 - 84
mealybar
October 7, 2005, 1:54pm Report to Moderator Report to Moderator

E-Blah Member
Posts: 190
Gender: Male
Posts Per Day: 0.04
Reputation: 100.00%
Reputation Score: +2 / -0
Time Online: 3 days 16 hours 24 minutes
Location: England
Age: 33
Thanks Justin, that seems to have put it right
Logged Offline
Private Message Private message Reply: 12 - 84
Tim Linden
October 8, 2005, 9:30am Report to Moderator Report to Moderator

Who IS that guy?
Administrator
Posts: 99
Posts Per Day: 0.01
Reputation: 100.00%
Reputation Score: +152 / -0
Time Online: 43 days 7 hours 41 minutes
Justin I don't see it.


Logged Offline
Site Site Private Message Private message Reply: 13 - 84
Tim Linden
October 8, 2005, 9:38am Report to Moderator Report to Moderator

Who IS that guy?
Administrator
Posts: 99
Posts Per Day: 0.01
Reputation: 100.00%
Reputation Score: +152 / -0
Time Online: 43 days 7 hours 41 minutes
Ok long version:

1) I use modrewrite extensively. The folders I use do not exist at all. For example:
   http://www.clixnetwork.com/products/traffic-exchange/
   There is no folder "products". You don't need to create one.

2) I downloaded the zip with eblah in it and it doesn't have those options.

3) I'm hot, humid, hungry, and just want it to work with mod rewrite but I may just do it the old fashioned way and ping you.


Logged Offline
Site Site Private Message Private message Reply: 14 - 84
6 Pages 1 2 3 4 5 6 » Recommend Thread
Print

E-Blah Community    Informational    Forum Updates  ›  mod_rewrite and E-Blah

Thread Tags