PDA

View Full Version : 404 Errors when clicking on categories?


MrB
11-08-2005, 06:52 PM
Hi,

Im probably missing something obvious here, i have installed php link directory and added a couple of test categories but when i click on the category links i get a 404 page error

see here www.avmechanic.co.uk/phplink

thanks

daredashi
11-08-2005, 06:58 PM
this is problem of mod_rewrite redirection.

please make sure .htaccess file is there in directory and has proper contents in it.

or just create one with following contents

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

yktan
11-09-2005, 03:33 AM
Hi MrB,

Like daredashi said, this is problem with mod_rewrite. There are two things you have to check:
(1) Verify that your webserver is running on *NIX and has mod_rewrite support.
(2) Your .htaccess file is correct. Simply upload the copy that came with the PHPLD package.

MrB
11-09-2005, 11:06 AM
Hi,

My webserver is Linux based and has mod-rewrite support as far as a i can tell.

Should the htacess file be in the root or in my phplink folder?

thanks

MrB
11-09-2005, 11:34 AM
Ok i have fixed the problem, i just add to add the path to index.php in my htaccess file then it worked..

thanks for your help

pass124
11-10-2005, 06:32 AM
ok, I have mod rewrite enabled on my server as well, but I can't get the categories to work:/

my php ld is installed to

mydomain.com/link-dir/

so what should I set my
RewriteRule .* index.php [QSA,L]

to ?

I tried:

RewriteRule .* index.php [QSA,L]
RewriteRule .* ./index.php [QSA,L]
RewriteRule .* /link-dir/index.php [QSA,L]


noen worked.

Thanks in advance.