Page 1 of 1

[solved] Pretty URLs - error 404

Posted: Tue Nov 02, 2010 7:07 pm
by PL_Twist
My site is: netkey.pl
Pretty url's looks ok, fe http://netkey.pl/zzzzz.html. When i click any link i see "error 404". WHat'ś wrong?
$config['root_path'] = '/home/myuser/domains/netkey.pl/public_html';

Re: Pretty URLs - error 404

Posted: Tue Nov 02, 2010 7:46 pm
by Wishbone
Are you running on an Apache server with mod-rewrite turned on, with the appropriate .htaccess file in place?

Re: Pretty URLs - error 404

Posted: Tue Nov 02, 2010 10:26 pm
by PL_Twist
mod-rewrite is turned on,
htaccess is here /home/myuser/domains/netkey.pl/doc/.htaccess

Re: Pretty URLs - error 404

Posted: Tue Nov 02, 2010 10:30 pm
by Wishbone
You might want to post the content of your .htaccess file. I'm no expert, but someone else might be able to help.

Re: Pretty URLs - error 404

Posted: Tue Nov 02, 2010 10:46 pm
by Jeff
.htaccess need to be in your root folder.

Re: Pretty URLs - error 404

Posted: Tue Nov 02, 2010 11:00 pm
by Wishbone
Good point.. Why is it in your doc folder?

Re: Pretty URLs - error 404

Posted: Tue Nov 02, 2010 11:20 pm
by Dr.CSS
The .htaccess in the doc folder is just for that folder, in the same folder you will find htaccess.txt, move that to root and rename .htaccess...

The .htaccess in doc folder just has...

# To deny PHPs
                                                                             
  order deny,allow                                                                                                           
  deny from all                                                                                                             


Which if you move it to the root may just shut the whole site down... ;)

Re: Pretty URLs - error 404

Posted: Wed Nov 03, 2010 12:26 am
by Wishbone
How can you tell what's in his .htaccess? I get a "403 forbidden", as expected.

Re: Pretty URLs - error 404

Posted: Wed Nov 03, 2010 1:47 am
by Dr.CSS
The .htaccess in his doc folder, cuz I have one in an unpacked 1.8.2 on my comp. and that's what it says, and yes you should get 403 Forbidden as that is what it's supposed to do...

Re: Pretty URLs - error 404

Posted: Wed Nov 03, 2010 2:03 am
by Wishbone
Makes sense.. The only reason I was wondering is that he specifically mentioned that one, almost like he put it there.

Re: Pretty URLs - error 404

Posted: Wed Nov 03, 2010 5:56 am
by Jeff
In the install it is named htaccess.txt. It needs to be rename (which he did) and then move to the root directory.

Re: [solved] Pretty URLs - error 404

Posted: Wed Nov 03, 2010 10:17 am
by PL_Twist
Thank guys, I moved .htaccess to root dir.

Re: [solved] Pretty URLs - error 404

Posted: Wed Nov 03, 2010 3:53 pm
by Wishbone
The new template looks nice too!