[solved] Pretty URLs - error 404

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
PL_Twist
New Member
New Member
Posts: 3
Joined: Tue Nov 02, 2010 7:04 pm

[solved] Pretty URLs - error 404

Post 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';
Last edited by PL_Twist on Wed Nov 03, 2010 10:16 am, edited 1 time in total.
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Pretty URLs - error 404

Post by Wishbone »

Are you running on an Apache server with mod-rewrite turned on, with the appropriate .htaccess file in place?
PL_Twist
New Member
New Member
Posts: 3
Joined: Tue Nov 02, 2010 7:04 pm

Re: Pretty URLs - error 404

Post by PL_Twist »

mod-rewrite is turned on,
htaccess is here /home/myuser/domains/netkey.pl/doc/.htaccess
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Pretty URLs - error 404

Post 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.
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm

Re: Pretty URLs - error 404

Post by Jeff »

.htaccess need to be in your root folder.
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Pretty URLs - error 404

Post by Wishbone »

Good point.. Why is it in your doc folder?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Pretty URLs - error 404

Post 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... ;)
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Pretty URLs - error 404

Post by Wishbone »

How can you tell what's in his .htaccess? I get a "403 forbidden", as expected.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Pretty URLs - error 404

Post 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...
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Pretty URLs - error 404

Post by Wishbone »

Makes sense.. The only reason I was wondering is that he specifically mentioned that one, almost like he put it there.
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm

Re: Pretty URLs - error 404

Post 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.
PL_Twist
New Member
New Member
Posts: 3
Joined: Tue Nov 02, 2010 7:04 pm

Re: [solved] Pretty URLs - error 404

Post by PL_Twist »

Thank guys, I moved .htaccess to root dir.
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: [solved] Pretty URLs - error 404

Post by Wishbone »

The new template looks nice too!
Post Reply

Return to “CMSMS Core”