All times are UTC + 5:30 hours




Post new topic Reply to topic  [ 5 posts ] 
  Print view

Pretty URL links do nothing
Author Message
PostPosted: Thu Aug 02, 2012 12:34 am 
Registered User
Offline

Joined: Fri Jun 01, 2012 12:09 am
Posts: 6
Hi guys,

I already did the steps in the documentation, but unfortunately the pretty links do not work. After clicking any link to a page (e.g. /about/ or /contact/), it does nothing and just goes to the home page.

I also tried to delete any other content in the .htaccess besides those generated by gen_htaccess.php, still it doesn't work.

Any quick fix for this?

Apologies also if this was already discussed on other threads, but I tried to search before posting this.

Thanks a lot! :D


Top
 Profile  
 

Re: Pretty URL links do nothing
PostPosted: Thu Aug 02, 2012 12:40 am 
Moderator
Offline

Joined: Wed Dec 01, 2010 5:35 pm
Posts: 1378
Hi Ton,

Seems like a .htaccess problem to me.
Please make sure
1. You generate the .htaccess file using couch/gen_dump.php and place it in your site's root folder (not 'couch' folder)
2. You turn the prettyURLs setting on in config.php.

If you still have problems, please PM me your site's FTP/Couch creds.

Thanks.


Top
 Profile  
 

Re: Pretty URL links do nothing
PostPosted: Thu Aug 02, 2012 12:55 am 
Registered User
Offline

Joined: Fri Jun 01, 2012 12:09 am
Posts: 6
KK wrote:
1. You generate the .htaccess file using couch/gen_dump.php and place it in your site's root folder (not 'couch' folder)


Hi! I'm sorry, I got confused with this: the gen_dump gave me a "install-ex.php", not a ".htaccess". What do I do with this "install-ex.php"?

Thanks! :)


Top
 Profile  
 

Re: Pretty URL links do nothing
PostPosted: Thu Aug 02, 2012 3:43 am 
Moderator
Offline

Joined: Wed Dec 01, 2010 5:35 pm
Posts: 1378
Please excuse my mistake - I actually meant 'gen_htaccess.php' and not 'gen_dump.php' :) Terribly sorry.

So when you execute gen_htaccess.php, it will show you some contents in your browser. Please copy the entire contents (Ctrl-A) and paste them in a file named '.htaccess'.
You can now place this .htaccess in your site's root folder.

P.S. On Windows, the OS will not allow you to create a file with no extension. If this be the case, just copy any .htaccess from with 'couch' folder and then edit it to paste the contents mentioned above.

On last thing, once prettyURLs are activated, you might find that all your images and CSS paths no longer work. That would happen if you are using relative paths with them.
This can be rectified by placing a '/' before the paths.

Hope this helps.
Thanks.


Top
 Profile  
 

Re: Pretty URL links do nothing
PostPosted: Sat Aug 04, 2012 8:22 pm 
Registered User
Offline

Joined: Fri Jun 01, 2012 12:09 am
Posts: 6
The .htaccess generated by couch seems to be conflicting with something in http://www.html5boilerplate.com's default .htaccess :-(

But nonetheless, I cleaned up my .htaccess in only having the important ones. I managed to get it working now. Thanks :D


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 5:30 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
© 2001-2010 SYS-Solutions All Rights Reserved