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

mod_rewrite and E-Blah  This thread currently has 13,559 views. Print
6 Pages « 1 2 3 4 5 6 » Recommend Thread
Asharad
February 8, 2006, 7:18pm Report to Moderator Report to Moderator
E-Blah Member
Posts: 40
Posts Per Day: 0.04
Time Online: 16 hours 10 minutes
Ok... now this is odd.  I got it working, but I didn't change my settings.pl.   It still has the / at the end of the address.   And when I mod Blah.pl I had to chmod it to 755 everytime.  The mod was borking my chmod.
Logged Offline
Private Message Private message Reply: 60 - 84
Martin
February 24, 2006, 4:25am Report to Moderator Report to Moderator

I love E-Blah
10 Series Support Team
Posts: 4,514
Gender: Male
Posts Per Day: 3.30
Reputation: 98.59%
Reputation Score: +210 / -3
Time Online: 35 days 13 hours 30 minutes
Location: UK
Age: 50
Thought it time I had a go at this, it works but I have one problem, take a look:

http://www.cheapestutilities.biz/forum

Notice the address in the address bar.

If then click on the Home button it displays correctly.

This is my .htaccess

Options All Indexes
IndexOptions FancyIndexing
RewriteEngine On
RewriteBase /forum
RewriteRule ^(.*) /cgi-bin/forum/Blah.pl?$1

Any ideas



Martin's Reputation: Increase
Logged Offline
Site Site Private Message Private message Reply: 61 - 84
thanetm
February 24, 2006, 5:03am 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 9 minutes
Location: Planet Thanet, Kent, UK
Age: 32
i have the same problem - if you don't put a trailing slash on the end it shows all that information you'd rather was hidden.

Use: http://www.cheapestutilities.biz/forum/

and it behaves itself! i don't think anyone has answered why this is yet, and i just don't know enough about it!!


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: 62 - 84
Justin
February 24, 2006, 10:24am Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,016
Gender: Male
Posts Per Day: 6.75
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 17 hours 49 minutes
Location: Tallassee, AL
Age: 21
I'm not sure either.  

RewriteBase /forum

Try:

RewriteBase /forum/

Not sure


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: 63 - 84
Martin
February 24, 2006, 1:33pm Report to Moderator Report to Moderator

I love E-Blah
10 Series Support Team
Posts: 4,514
Gender: Male
Posts Per Day: 3.30
Reputation: 98.59%
Reputation Score: +210 / -3
Time Online: 35 days 13 hours 30 minutes
Location: UK
Age: 50
Thank's thantetm, this works.

Tried what you suggested Justin but still get the same, off to scour the web



Martin's Reputation: Increase
Logged Offline
Site Site Private Message Private message Reply: 64 - 84
Craig
February 24, 2006, 4:18pm 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
I am guessing that this is a server issue because it is not a problem on my 1and1 account.


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: 65 - 84
Craig
February 24, 2006, 4:18pm 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
Quoted from thanetm
i have the same problem - if you don't put a trailing slash on the end it shows all that information you'd rather was hidden.

Use: http://www.cheapestutilities.biz/forum/

and it behaves itself! i don't think anyone has answered why this is yet, and i just don't know enough about it!!


Works like a charm.


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: 66 - 84
Apollo
February 27, 2006, 4:53am Report to Moderator Report to Moderator

E-Blah Member
Posts: 205
Posts Per Day: 0.17
Time Online: 1 days 22 hours 50 minutes
Admit up-front I'm not familiar with mod_rewrite, but have started to have a look.

The trailing slash seems to be a consistent problem in the above posts, apparently sometimes needed, sometimes not,and I wonder if this is any help in consistently handling it's existence or absence in the original url:
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.
Logged Offline
Site Site Private Message Private message Reply: 67 - 84
Craig
February 27, 2006, 3:35pm 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
huh?


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: 68 - 84
Apollo
February 27, 2006, 10:00pm Report to Moderator Report to Moderator

E-Blah Member
Posts: 205
Posts Per Day: 0.17
Time Online: 1 days 22 hours 50 minutes
It's just an offering. As I noted, mod_rewrite is something I only looked at yesterday as it has appeared in another package I use, as a means to hide the 'dirty' urls with stuf like ?action=edit from users, and rewrite them in convential tree form.. I rememberd watching this thread with assorted problems being 'fixed' by playing with trailing / after seeing the above snippet that allows mod_rewrite to work as intended with or without the trailing / in place.

Whether or not it's any use is, of course, another question
Logged Offline
Site Site Private Message Private message Reply: 69 - 84
thanetm
February 28, 2006, 3:22am 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 9 minutes
Location: Planet Thanet, Kent, UK
Age: 32
i had a bit of a play with it on my lunch break yesterday. problem is - mod_rewite is being used in my case to create a new directory name ie instead of using /forum/Blah/Blah.pl i'm using mod_rewrite to create /soapbox/.

So i haven't figured yet how to implement the other check to add the trailing slash, because until you've done the first rule the /soapbox problem doesn't exist. (i'm not sure if that makes sense) I tried various things and none of them worked

i haven't given up yet...


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: 70 - 84
mealybar
January 22, 2007, 7:19pm Report to Moderator Report to Moderator

E-Blah Member
Posts: 178
Gender: Male
Posts Per Day: 0.16
Reputation: 100.00%
Reputation Score: +2 / -0
Time Online: 3 days 12 hours 33 minutes
Location: England
Age: 22
Is there a way of upgrading without having to turn off the mod_rewrite? -- I have to turn it off to run the Setup.pl file
Logged Offline
Private Message Private message Reply: 71 - 84
Justin
January 22, 2007, 7:44pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,016
Gender: Male
Posts Per Day: 6.75
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 17 hours 49 minutes
Location: Tallassee, AL
Age: 21
What?  You don't have to turn anything off, just change it in Blah.pl, run Setup.pl from your main installation directory.


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: 72 - 84
mealybar
January 23, 2007, 7:27pm Report to Moderator Report to Moderator

E-Blah Member
Posts: 178
Gender: Male
Posts Per Day: 0.16
Reputation: 100.00%
Reputation Score: +2 / -0
Time Online: 3 days 12 hours 33 minutes
Location: England
Age: 22
My understanding of the code in the htaccess file was that anything after the domain.com/forum/<here> would be rewritten to domain.com/forum/Blah.pl?<here> in such case running the setup file (domain.com/forum/Setup.pl) wouldnt work would it?
Logged Offline
Private Message Private message Reply: 73 - 84
Justin
January 23, 2007, 7:29pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,016
Gender: Male
Posts Per Day: 6.75
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 17 hours 49 minutes
Location: Tallassee, AL
Age: 21
It should, but you'll have to tell Apache NOT to run the rewrite if Blah.pl is run (or else it'd loop out).


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: 74 - 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