PDA

View Full Version : Enable URL rewrite problem


fastcart
10-12-2005, 10:54 PM
Hi. Got my site up and working on a linux server (with an empty .htaccess file). However when I click Yes for Enable URL rewrite it 404's the catagories...

It works fine without URL rewrite activated but when I enable it...it seems to add an extra slash after the the top domain (or catagory if I'm trying to view a subcategory)

EG If I go to my index page :

{url no longer in service}

and press the Real Estate category:
It tries to go to here:

{url no longer in service}

(notice the extra slash it throws in there after .com)

Ideas, settings etc?

Thanks, I'm sure this is just some minor thing I just don't know where to fix it.

:D

fastcart
10-12-2005, 11:48 PM
OK I think I've answered my own question but am posting for future phpeoples so that they can save some time and hair folicles:

I added this to the .htaccess (found it somewhere else in this forum)

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php [QSA,L]

Everything seems to work now.

We now return you to your regularly scheduled programming.
So to speak. Thank you.

:)

Ap0s7le
10-13-2005, 01:37 AM
fastcart, right.

That's why you're suppose to upload all the files :)

Glad you got it worked out.

-Casey

fastcart
10-13-2005, 03:37 AM
Wow is that how this Webernet stuff works?

Indeed, after a quick perusal of the files, it appears I had not uploaded that particular version of .htaccess even though it was provided to me.

Now. If you'll excuse me. I'm off to gnaw on some wood chips. :D

yktan
10-13-2005, 03:46 AM
Content visible to registered users only.

You make wood chips sound so yummy lol

Ap0s7le
10-13-2005, 04:55 AM
I love the chocolate flavored ones.