|
|
Asharad |
|
|
Posts: 40
Posts Per Day: 0.02
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. |
|
|
|
|
|
Martin |
| February 24, 2006, 4:25am |
|
|
Posts: 5,171
Gender:  Male
Posts Per Day: 1.98
Reputation: 98.41%
Reputation Score: +247 / -4
Time Online: 39 days 9 hours 4 minutes
Location: UK
Age: 53
|
Thought it time I had a go at this, it works but I have one problem, take a look: http://www.cheapestutilities.biz/forumNotice 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 |
|
|
|
|
thanetm |
| February 24, 2006, 5:03am |
|
|
Posts: 177
Gender:  Female
Posts Per Day: 0.08
Reputation: 100.00%
Reputation Score: +5 / -0
Time Online: 15 days 11 hours 47 minutes
Location: Planet Thanet, Kent, UK
Age: 36
|
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!! |
| |
|
|
|
|
|
Justin |
| February 24, 2006, 10:24am |
|
|
Posts: 15,196
Gender:  Male
Posts Per Day: 4.37
Reputation: 93.25%
Reputation Score: +304 / -22
Time Online: 37 days 19 hours 48 minutes
Location: Tallassee, AL
Age: 25
|
|
|
|
|
|
Martin |
| February 24, 2006, 1:33pm |
|
|
Posts: 5,171
Gender:  Male
Posts Per Day: 1.98
Reputation: 98.41%
Reputation Score: +247 / -4
Time Online: 39 days 9 hours 4 minutes
Location: UK
Age: 53
|
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 |
|
|
|
|
Craig |
| February 24, 2006, 4:18pm |
|
|
Posts: 3,611
Gender:  Male
Posts Per Day: 1.26
Reputation: 97.73%
Reputation Score: +215 / -5
Time Online: 14 days 15 hours 54 minutes
Location: Germany
Age: 41
|
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. |
|
|
|
|
|
Craig |
| February 24, 2006, 4:18pm |
|
|
Posts: 3,611
Gender:  Male
Posts Per Day: 1.26
Reputation: 97.73%
Reputation Score: +215 / -5
Time Online: 14 days 15 hours 54 minutes
Location: Germany
Age: 41
|
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. |
|
|
|
|
|
Apollo |
| February 27, 2006, 4:53am |
|
|
Posts: 228
Posts Per Day: 0.09
Time Online: 2 days 3 hours 36 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.
|
|
|
|
|
|
Craig |
| February 27, 2006, 3:35pm |
|
|
Posts: 3,611
Gender:  Male
Posts Per Day: 1.26
Reputation: 97.73%
Reputation Score: +215 / -5
Time Online: 14 days 15 hours 54 minutes
Location: Germany
Age: 41
|
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. |
|
|
|
|
|
Apollo |
| February 27, 2006, 10:00pm |
|
|
Posts: 228
Posts Per Day: 0.09
Time Online: 2 days 3 hours 36 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  |
|
|
|
|
|
thanetm |
| February 28, 2006, 3:22am |
|
|
Posts: 177
Gender:  Female
Posts Per Day: 0.08
Reputation: 100.00%
Reputation Score: +5 / -0
Time Online: 15 days 11 hours 47 minutes
Location: Planet Thanet, Kent, UK
Age: 36
|
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... |
| |
|
|
|
|
|
mealybar |
|
|
Posts: 190
Gender:  Male
Posts Per Day: 0.08
Reputation: 100.00%
Reputation Score: +2 / -0
Time Online: 3 days 16 hours 24 minutes
Location: England
Age: 25
|
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 |
|
|
|
|
|
Justin |
|
|
Posts: 15,196
Gender:  Male
Posts Per Day: 4.37
Reputation: 93.25%
Reputation Score: +304 / -22
Time Online: 37 days 19 hours 48 minutes
Location: Tallassee, AL
Age: 25
|
|
|
|
|
|
mealybar |
|
|
Posts: 190
Gender:  Male
Posts Per Day: 0.08
Reputation: 100.00%
Reputation Score: +2 / -0
Time Online: 3 days 16 hours 24 minutes
Location: England
Age: 25
|
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? |
|
|
|
|
|
Justin |
|
|
Posts: 15,196
Gender:  Male
Posts Per Day: 4.37
Reputation: 93.25%
Reputation Score: +304 / -22
Time Online: 37 days 19 hours 48 minutes
Location: Tallassee, AL
Age: 25
|
|
|
|
|
|
|