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 6 Guests

mod_rewrite and E-Blah  This thread currently has 13,544 views. Print
6 Pages « 1 2 3 4 5 6 » Recommend Thread
Justin
October 8, 2005, 12:06pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,015
Gender: Male
Posts Per Day: 6.75
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 17 hours 45 minutes
Location: Tallassee, AL
Age: 21
Quoted from xxclixxx
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.


You've got to use 9.3.

I've grown fond of rewrite too .... I've changed all my links on eblah.com to be like {whatever}.php when it's really ?v=whatever.php .


I do installs for $25 and upgrades for $20.
Technical support is always free.

  Donate to E-Blah!  

My Websites: Revolution Reality (My Blog)  |  MinistryTalk.com  |  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: 15 - 84
thanetm
October 18, 2005, 8:15am Report to Moderator Report to Moderator

Having fun, Charity Mini Runs...
Posts: 177
Gender: Female
Posts Per Day: 0.16
Reputation: 100.00%
Reputation Score: +5 / -0
Time Online: 12 days 5 hours 1 minutes
Location: Planet Thanet, Kent, UK
Age: 32
i've got the mod_rewrite working, and everything is hunkydory if you go to http://www.smallcarsbighearts.co.uk/soapbox/

However, if you take that last '/' off it shows information in the address bar that i don't want people to see.

Any ideas what is going on?

Also, after adding this mod, when people registered the link in the e-mail to validate their address didn't work, so i updated the forum url in the admin settings, but couldn't put a forward slash on the end, so had to go into one of the files (can't remember which one now!) and edit the code. Just thought i would mention it in case other people had the same problem  

ta muchly!


Please support us - we're raising money for Demelza House Children's Hospice, by driving from Land's End to John O'Groats.
http://www.justgiving.com/blowin_tyres



Having Fun, Charity Mini Runs
Raising money...Raising Smiles
Children's Hospice South West & Demelza House Children's Hospice

http://www.smallcarsbighearts.co.uk | http://www.blowin-tyres.co.uk | http://www.ndmr-soapbox.co.uk
Logged Offline
Site Site Private Message Private message Reply: 16 - 84
Justin
October 18, 2005, 11:57am Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,015
Gender: Male
Posts Per Day: 6.75
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 17 hours 45 minutes
Location: Tallassee, AL
Age: 21
Hmmm ... did you change anything to make it redirect to that page instead of act like an internal link or whatever.  I'm not too knowledgable about mod_rewrite, maybe someone else can better help?


I do installs for $25 and upgrades for $20.
Technical support is always free.

  Donate to E-Blah!  

My Websites: Revolution Reality (My Blog)  |  MinistryTalk.com  |  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: 17 - 84
Justin
October 19, 2005, 11:16pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,015
Gender: Male
Posts Per Day: 6.75
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 17 hours 45 minutes
Location: Tallassee, AL
Age: 21
Run the upgrade, it gets rid of the dash in the username for you.


I do installs for $25 and upgrades for $20.
Technical support is always free.

  Donate to E-Blah!  

My Websites: Revolution Reality (My Blog)  |  MinistryTalk.com  |  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: 18 - 84
riffplayer
October 21, 2005, 9:54am Report to Moderator Report to Moderator

E-Blah Member
Posts: 263
Gender: Male
Posts Per Day: 0.16
Reputation: 100.00%
Time Online: 2 days 3 hours 37 minutes
Location: Indiana
Age: 33
Quoted from thanetm
i've got the mod_rewrite working, and everything is hunkydory if you go to http://www.smallcarsbighearts.co.uk/soapbox/

However, if you take that last '/' off it shows information in the address bar that i don't want people to see.

Any ideas what is going on?

Also, after adding this mod, when people registered the link in the e-mail to validate their address didn't work, so i updated the forum url in the admin settings, but couldn't put a forward slash on the end, so had to go into one of the files (can't remember which one now!) and edit the code. Just thought i would mention it in case other people had the same problem  

ta muchly!



I've been doing some research on mod_rewrite and here's something I found that might help:
Quoted Text
Adding Trailing Slashes
If your site visitor had entered something like products/12, the rule above won’t do a redirect, as the slash at the end is missing. To promote good URL writing, we’ll take care of this by doing a direct redirect to the same URL with the slash appended.

RewriteRule ^products/([0-9][0-9])$ products/$1/ [R]

Multiple redirects in the same .htaccess file can be applied in sequence, which is what we’re doing here. This rule is added before the one we did above, like so:

RewriteRule ^products/([0-9][0-9])$ products/$1/ [R]
RewriteRule ^products/([0-9][0-9])/$ productinfo.php?prodID=$1

Thus, if the user types in the URL products/12, our first rule kicks in, rewriting the URL to include the trailing slash, and doing a new request for products/12/ so the user can see that we likes our trailing slashes around here. Then the second rule has something to match, and transparently redirects this URL to productinfo.php?prodID=12. Slick.



You can see this and more info about Mod Rewrite at this website:  http://www.yourhtmlsource.com/sitemanagement/urlrewriting.html
Logged Offline
Private Message Private message Reply: 19 - 84
Justin
October 21, 2005, 3:35pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,015
Gender: Male
Posts Per Day: 6.75
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 17 hours 45 minutes
Location: Tallassee, AL
Age: 21
Quoted from riffplayer



I've been doing some research on mod_rewrite and here's something I found that might help:



You can see this and more info about Mod Rewrite at this website:  http://www.yourhtmlsource.com/sitemanagement/urlrewriting.html


Hmmm


I do installs for $25 and upgrades for $20.
Technical support is always free.

  Donate to E-Blah!  

My Websites: Revolution Reality (My Blog)  |  MinistryTalk.com  |  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: 20 - 84
Justin
October 21, 2005, 3:37pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,015
Gender: Male
Posts Per Day: 6.75
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 17 hours 45 minutes
Location: Tallassee, AL
Age: 21
I really don't think that's what it is.


I do installs for $25 and upgrades for $20.
Technical support is always free.

  Donate to E-Blah!  

My Websites: Revolution Reality (My Blog)  |  MinistryTalk.com  |  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: 21 - 84
thanetm
October 22, 2005, 1:30pm Report to Moderator Report to Moderator

Having fun, Charity Mini Runs...
Posts: 177
Gender: Female
Posts Per Day: 0.16
Reputation: 100.00%
Reputation Score: +5 / -0
Time Online: 12 days 5 hours 1 minutes
Location: Planet Thanet, Kent, UK
Age: 32
it doesn't seem to work - i'm guessing because of the RewriteBase - which is the 'madeup' bit, so isn't an actual path to redirect...

course i have absolutely no idea what i'm talking about - nothing new there!!


Please support us - we're raising money for Demelza House Children's Hospice, by driving from Land's End to John O'Groats.
http://www.justgiving.com/blowin_tyres



Having Fun, Charity Mini Runs
Raising money...Raising Smiles
Children's Hospice South West & Demelza House Children's Hospice

http://www.smallcarsbighearts.co.uk | http://www.blowin-tyres.co.uk | http://www.ndmr-soapbox.co.uk
Logged Offline
Site Site Private Message Private message Reply: 22 - 84
goober99
November 3, 2005, 12:00am Report to Moderator Report to Moderator
E-Blah Member
Posts: 8
Posts Per Day: 0.01
Time Online: 4 hours 57 minutes
I already use mod_rewrite on my website also, and I normally deal with directories that don't exist. I have E-Blah installed in /E-Blah (not in the cgi-bin). I installed 9.4 and changed the lines in Blah.pl to use mod_rewrite. Then I dropped the following line into my .htaccess file in my root web folder, and everything works great:

Code
RewriteRule ^forum/*(.*)$ e-blah/Blah.pl?$1
Logged Offline
Private Message Private message Reply: 23 - 84
Justin
November 23, 2005, 2:59pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,015
Gender: Male
Posts Per Day: 6.75
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 17 hours 45 minutes
Location: Tallassee, AL
Age: 21
I just thought I'd mention that after doing this Google has indexed about 75% of EBlah.com.  


I do installs for $25 and upgrades for $20.
Technical support is always free.

  Donate to E-Blah!  

My Websites: Revolution Reality (My Blog)  |  MinistryTalk.com  |  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: 24 - 84
will
November 23, 2005, 4:26pm Report to Moderator Report to Moderator

Jesus is the way the truth and the life
Posts: 65
Gender: Male
Posts Per Day: 0.05
Reputation: 100.00%
Reputation Score: +1 / -0
Time Online: 14 days 4 hours 22 minutes
Location: Scotland
Age: 25
Right i almost have this working.  One major problem.... http://wrestling.forum300.com/forum/ .......what ever i click takes me back to the main page again.  Cannot access any of the forums or anything it simply keeps me on the blah.pl page.  How do i overcome this problem?.


For god so loves the world that he gave his only begotten son the who ever belives in him shall not perish but have everlasting life


Revision History (2 edits)
will  -  November 23, 2005, 4:37pm
will  -  November 23, 2005, 4:35pm
error has changed.
Logged Offline
Private Message Private message Reply: 25 - 84
Justin
November 23, 2005, 5:20pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,015
Gender: Male
Posts Per Day: 6.75
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 17 hours 45 minutes
Location: Tallassee, AL
Age: 21
In Blah.pl make it /forum/ not forum


I do installs for $25 and upgrades for $20.
Technical support is always free.

  Donate to E-Blah!  

My Websites: Revolution Reality (My Blog)  |  MinistryTalk.com  |  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: 26 - 84
will
November 23, 2005, 6:06pm Report to Moderator Report to Moderator

Jesus is the way the truth and the life
Posts: 65
Gender: Male
Posts Per Day: 0.05
Reputation: 100.00%
Reputation Score: +1 / -0
Time Online: 14 days 4 hours 22 minutes
Location: Scotland
Age: 25
Quoted from admin
In Blah.pl make it /forum/ not forum

Ive done that its still doing the same thing for me.  Its not going to the right files its looking in the forum folder for the files.....


For god so loves the world that he gave his only begotten son the who ever belives in him shall not perish but have everlasting life

Logged Offline
Private Message Private message Reply: 27 - 84
will
November 24, 2005, 6:44am Report to Moderator Report to Moderator

Jesus is the way the truth and the life
Posts: 65
Gender: Male
Posts Per Day: 0.05
Reputation: 100.00%
Reputation Score: +1 / -0
Time Online: 14 days 4 hours 22 minutes
Location: Scotland
Age: 25
Another thing ive noticed is that if i goto the url http://wrestling.forum300.com/forum and dont put the / on the end of forum i get a different thing altogether.  I get the same main page but then i click the link i get this error -
Not Found
The requested URL /Blah.pl was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.34 Server at wrestling.forum300.com Port 80

Any ideas?


For god so loves the world that he gave his only begotten son the who ever belives in him shall not perish but have everlasting life

Logged Offline
Private Message Private message Reply: 28 - 84
Craig
November 24, 2005, 6:58am Report to Moderator Report to Moderator

SQL Support Team
Posts: 3,619
Gender: Male
Posts Per Day: 2.23
Reputation: 97.73%
Reputation Score: +215 / -5
Time Online: 14 days 14 hours 57 minutes
Location: Germany
Age: 38
Ok, I got it working.  For what ever reason, my Forum address needs to be:
http://www.blahdocs.com/forum/
not:
http://www.blahdocs.com/forum
for my News to work right on my main page.  If I don't have that trailing slash in there, the links show like this:
http://www.blahdocs.com/forumm-somenumber/
instead of:
http://www.blahdocs.com/forum/m-somenumber/
This would be fine, but when I save settings in my admin center, it always removes that trailing slash.  Yes I can edit the Settings.pl file, but anytime I save settings after that in my admin center, this will change back to no slash .

Justin, did you put something in the code that removes this slash?  If so, can you get rid of that / tell me where to find it so I can fix this problem...please
-Craig.


Don't just ask a question.
Instead ask a question, give us a screen shot and post a link to your forum.
Help us help you make your forum better!


If I helped...increase my Reputation by clicking here.
Logged Offline
Site Site Private Message Private message ICQ ICQ Reply: 29 - 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