Problems, need help? Have a tip or advice? Post it here.
10 posts Page 1 of 1
I tried to turn on pretty urls on http://www.realestateoftetonvalley.com and now all subpages are broken. Not sure if I missed a step or just did something wrong. I also tried to revert back to not using pretty urls and i'm still having problems.

thanks for any help!
Hi Heather,

now all subpages are broken
You did not specify how exactly are the subpages broken so I'll assume it is one of the following two main problems encountered with prettyURLs

1. Pages throw a server error.
Make sure your server supports mod_rewrite (the component used for prettyURLs). To do so please use the utility available here: viewtopic.php?p=11832#p11832

2. Pages come up ok but the CSS and image links are broken.
This is a common problem with url rewriting and happens because your pages are using relative links for stylesheets/scripts/images.
To rectify this problem, please convert all these links to absolute e.g.
<link href="css/lightbox.css" rel="stylesheet" /> becomes
<link href="/css/lightbox.css" rel="stylesheet" /> (notice the leading slash) or better still
<link href="<cms:show k_site_link />css/lightbox.css" rel="stylesheet" />

Finally, to turn off prettyurls you need to do two things -
1. delete the .htaccess
2. set prettyurls to 0 in config file.
On your site it seems you have done only one of the two things.

Hope this helps.
Do let me know.
Thanks for the quick reply! When I navigate to a subpage, I'm getting this error:

Not Found

The requested URL /listings/ was not found on this server.

Apache/2.2.3 (CentOS) Server at realestateoftetonvalley.com Port 80


I ran the rewrite test and it said it was set, so I think I'm okay there.

This site is setup as a addon domain, will that require me to change anything in in .htccess file?
The file has to be named .htaccess (there is an 'a' in there).
Please try renaming it if you've named it wrong and let me know if this helps.
Thank you!!

Fixing the typo fixed it. I then had to do your css fix.

Thanks again for your help!!
You are welcome :)
http://www.realestateoftetonvalley.com/listings/well-maintained-log-home-in-tetonia.html

So, I'm having trouble with the photo gallery images showing on this page. Pretty sure it has to do with the rewrite stuff but I can't figure out where to put the /, if that's what I need to do to fix it?

Code: Select all
<cms:repeatable name='my_multiple_/images' label='Additional Photos'>
   <cms:editable type='image' name='my_image' label='Photo' show_preview='1' preview_width='150' input_width='200' col_width='300' />
   <cms:editable type='nicedit' label='Description' name='my_desc' />
</cms:repeatable>

<hr>
<h3>Photo Gallery</h3>

<cms:show_repeatable 'my_multiple_/images' label='Additional Photos' >
<section class="gallery_image">
<a href="<cms:show my_image />" data-lightbox="additional-photos" ><img style="width: 143px;" src="<cms:show my_image />" /></a> <br/>
<cms:repeatable name='my_multiple_/images' label='Additional Photos'>
<cms:show_repeatable 'my_multiple_/images' label='Additional Photos' >

Heather, did you just add a slash to those names?
Please remove them to go back to the original names.
The slash is required only with HTML tags dealing with links to external files like <A>, <SCRIPT>, <LINK>, <IMG> etc.
Ah, I see what happened. I did a mass find/replace of images to /images. All fixed. Thanks again!
Also, be careful how you are linking your templates. Your 'Recent Listings' sidebar link for example will send you to the wrong location. It is always best to just use the 'link' tag like so:
Code: Select all
<a href="<cms:link 'listings.php'/>">Recent Listings</a>
10 posts Page 1 of 1