.htaccess issues
tommy
Join date: Aug 25th 2010
Community posts: 38
View Profile
Send Message
+Follow
on a GoDaddy shared hosting account, jcow 3.3's .htaccess file is causing problems.
i have jcow installed in a sub directory, like:

domain/jcow

if there is a / after the folder name, all works perfectly
(domain/jcow/)

but leave the trailing / off, and i'm getting:

"Bad Request - Your browser sent a request that this server could not understand." (400 error)

if i don't use the .htaccess file at all, then the page loads properly, but uploaded materials (photos / mp3s) throw 404's

This seems to be unique to GoDaddy shared hosting, as I have the exact same setup on my Arvixe hosted sites and everything works flawlessly.

the .htaccess file:

<IfModule mod_rewrite.c>
RewriteEngine on
# To append a query string part in the substitution string
RewriteRule ^([0-9a-z_/\-]+)/$ index.php\?p=$1 [QSA]
RewriteRule ^([0-9a-z_/\-]+)$ index.php\?p=$1 [QSA]
</IfModule>

any help would be greatly appreciated.
Sep 17th 2010, 10:24 pm
tommy
Join date: Aug 25th 2010
Community posts: 38
View Profile
Send Message
+Follow
after 12 hours of unsuccessful tinkering, i still can't get it to work properly.. any help would be much appreciated
Sep 18th 2010, 8:35 am
tommy
Join date: Aug 25th 2010
Community posts: 38
View Profile
Send Message
+Follow
i'd still like to figure out what the problem is.. i work with a few projects using that host (friends accounts, not mine) and finding a way around this might come in handy in the future.
Sep 25th 2010, 10:26 am
tommy
Join date: Aug 25th 2010
Community posts: 38
View Profile
Send Message
+Follow
sheesh..
Sep 28th 2010, 7:58 pm
sarkarijobdaily
Join date: Feb 27th 2019
Community posts: 2
View Profile
Send Message
+Follow
@tommy .htaccess apache work
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?p=$1 [NC,L,QSA]
Mar 12th 2019, 7:25 pm