Welcome Guest, Not a member yet? Register   Sign In
Problem with forward slash at the end of url, help please.
#1

[eluser]NachoF[/eluser]
Hey guys... the webhost Im using has very old apache1.3+php4 server... Im getting a Bad request error...it happens when I add the .htaccess file that works fine on my localhost
Code:
Options +FollowSymLinks
Options -Indexes
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\.php|images|resources|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L,QSA]

The error is when I try to access the site that its on a subfolder inside the html folder... but in the html folder theres already a different .htacess file that was there before... heres that one.
Code:
# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthUserFile /var/www/html/_vti_pvt/service.pwd
AuthGroupFile /var/www/html/_vti_pvt/service.grp

I havent a clue about this stuff.... any help is appreciated.
#2

[eluser]TheFuzzy0ne[/eluser]
I'm more interested in the URL you're trying to access. I think it tends to happen when an encoded forward slash is parsed, or if you have two consecutive forward slashes in your URL. I don't think the htaccess is directly to blame as such.
#3

[eluser]NachoF[/eluser]
Nevermind... it stopped happening.... very weird.
#4

[eluser]NachoF[/eluser]
Ok... it happens when I dont include the forward slash in the address
Code:
http://www.mysite.com/appfolder/
this works.
but
Code:
http://www.mysite.com/appfolder
gives me the error.
How can I fix this?f
#5

[eluser]NachoF[/eluser]
Quote:I’m more interested in the URL you’re trying to access. I think it tends to happen when an encoded forward slash is parsed, or if you have two consecutive forward slashes in your URL. I don’t think the htaccess is directly to blame as such.

Well, it happens when I dont add the forward slash at the end of the address.... but, if I remove the forward slash it'll automatically add it and work...but I need to htaccess file cause I dont want index.php showing up on every address.
#6

[eluser]Dam1an[/eluser]
I've seen this a few times on the forum, but can't remember what the solution was
Do a quick search, and you might find something
#7

[eluser]NachoF[/eluser]
[quote author="Dam1an" date="1242260174"]I've seen this a few times on the forum, but can't remember what the solution was
Do a quick search, and you might find something[/quote]

I cant find anyone with the same problem... Im sure its got something to do with the htaccess file cause when I remove it the slash get automatically added.
#8

[eluser]NachoF[/eluser]
Wow, I cant believe I havent found the answer to this yet.... maybe I should try message boards directly related to apache?




Theme © iAndrew 2016 - Forum software by © MyBB