Login     Sign up
.htaccess issues
tommy (@tommy)
Join date: Aug 24th 2010
Community posts: 38
View Profile
Send Message

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.

174 months ago
tommy (@tommy)
Join date: Aug 24th 2010
Community posts: 38
View Profile
Send Message

after 12 hours of unsuccessful tinkering, i still can't get it to work properly.. any help would be much appreciated

174 months ago
tommy (@tommy)
Join date: Aug 24th 2010
Community posts: 38
View Profile
Send Message

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.

174 months ago
tommy (@tommy)
Join date: Aug 24th 2010
Community posts: 38
View Profile
Send Message

sheesh..

174 months ago
Gill (@sarkarijobdaily)
Join date: Feb 27th 2019
Community posts: 2
View Profile
Send Message

@tommy .htaccess apache work
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?p=$1 [NC,L,QSA]

71 months ago