Hello:
I'm using cmsms 0.13. Much has changed from the previous version I used 0.11.2, but I'm starting to get my head around it.
Here's my dillema:
I changed config.php to:
#------------
#URL Settings
#------------
#Show mod_rewrite URLs in the menu?
$config['assume_mod_rewrite'] = true;
#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '/';
#If you don't use mod_rewrite, then would you like to use the built-in
#pretty url mechanism? This will not work with IIS and the {metadata} tag
#should be in all of your templates before enabling.
$config['internal_pretty_urls'] = true;
#If you're using the internal pretty url mechanism or mod_rewrite, would you like to
#show urls in their hierarchy? (ex. http://www.mysite.com/parent/parent/childpage)
$config['use_hierarchy'] = true;
#If using none of the above options, what should we be using for the query string
#variable? (ex. http://www.mysite.com/index.php?page=somecontent)
$config['query_var'] = 'page';
I ulploaded .htaccess containing:
Options +FollowSymLinks
RewriteEngine on
# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !\.
RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]
# Rewrites urls in the form of /parent/child/
# but only rewrites if the requested URL is not a file or directory
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
I event tried it with:
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
then I added {metadata} in the head of my template.
Can someone please help me figure out why I get a 500 Error when I navigate within the admin or the site?
really stumped
Error 500 with pretty url
Re: Error 500 with pretty url
thanks pgoneill. However, this is the same server on which I implemented v0.11.2 and I did use pretty URL on that one as well. check it out here: http://adancedeservices.com
this server is running:
PHP version 4.3.11
Apache version 1.3.33 (Unix)
any ideas what else I should check? or how to check?
I am using mac osX, my ftp is transmit in auto mode, I made sure to chmod the config.php file to 666 each time I make changes (it tends to revert back to 000)
I sincerely apprecieate any assistance.
this server is running:
PHP version 4.3.11
Apache version 1.3.33 (Unix)
any ideas what else I should check? or how to check?
I am using mac osX, my ftp is transmit in auto mode, I made sure to chmod the config.php file to 666 each time I make changes (it tends to revert back to 000)
I sincerely apprecieate any assistance.
Last edited by newagekat on Sun Jun 18, 2006 2:10 am, edited 1 time in total.
Re: Error 500 with pretty url
ok, i made all the changes except that I did not upload the .htaccess file. no 500 error. so something is odd about this file. Does that help?
Re: Error 500 with pretty url
Making headway
it seemed the .htaccess I created in textedit saved the file as either rich text or doc. bbedit wouldn't even save the file without an extension. so i borrowed a file from another client and pasted the suggested code and cleared the cache in global settings.
Now I get a 404 error: the requested URL /projects/ was not found on this server.
this is stranger by the second. I really don't know what to do. Please have a look at: http://magpiefilm.com/index.php
thanks you guys. If this cannot be solved, I would be left with 2 options:
1. re-install and start from scratch
2. install the older version - it was simpler.
don't relish doing either. Anyone have any aha moments?
it seemed the .htaccess I created in textedit saved the file as either rich text or doc. bbedit wouldn't even save the file without an extension. so i borrowed a file from another client and pasted the suggested code and cleared the cache in global settings.
Now I get a 404 error: the requested URL /projects/ was not found on this server.
this is stranger by the second. I really don't know what to do. Please have a look at: http://magpiefilm.com/index.php
thanks you guys. If this cannot be solved, I would be left with 2 options:
1. re-install and start from scratch
2. install the older version - it was simpler.
don't relish doing either. Anyone have any aha moments?
Last edited by newagekat on Sun Jun 18, 2006 4:19 am, edited 1 time in total.
Re: Error 500 with pretty url
It's fixed!!!
For all you newbies, just like me, here's what I found:
Sometimes, Tansmit will add strange code in a file and sometimes it won't show a file. I had an .htaccess file which was blank and _.htaccess which had the code. i logged into the server's control panel, accessed the file manager, deleted the blank one, and changed the file name of the coded file. I also overwrote the code by re-pasting the one on tips and tricks.
It worked.
Hope my ordeal helps someone else.
Now onto menus - yikes
For all you newbies, just like me, here's what I found:
Sometimes, Tansmit will add strange code in a file and sometimes it won't show a file. I had an .htaccess file which was blank and _.htaccess which had the code. i logged into the server's control panel, accessed the file manager, deleted the blank one, and changed the file name of the coded file. I also overwrote the code by re-pasting the one on tips and tricks.
It worked.
Hope my ordeal helps someone else.
Now onto menus - yikes