Problem Changing Page Name & Alias

Permalink
I changed the name and alias of an existing page on my C5 test site from Services (/services) to Themes (/themes). When I did this the page broke. Take a look at it athttp://c5.sineceramedia.com/themes/.... How do I fix it?

 
andrew replied on at Permalink Reply
andrew
I imagine that's because there's already a "themes/" directory in the root, and when you go to /themes/ apache takes you to the directory instead of the vanity URL.

For example, going here:

http://c5.sineceramedia.com/index.php/themes/...

seems to work just fine.

You could try removing the line:

RewriteCond %{REQUEST_FILENAME} !-d


from your .htaccess file - although that might have unforeseen consequences.
ScottC replied on at Permalink Reply
ScottC
Before it was showing the index of the directory, as in a file list of the template directory contents. When i appended index.php to the directory listing, it brought up his template. This seems like a web server issue that it shows the directory instead of looking for or some sort of rewrite to index.php, I try to stay out of the hosting and server side of things and leave it to someone more capable and/or interested :)
c5mix replied on at Permalink Reply
Andrew, thanks for posting back so quickly. I went ahead and just changed the page alias to something different. Doesnt this mean this will happen with any other directory in the root - if a page is named the same as a directory. (ex: /libraries, /elements, /tools, etc.). Should there be a fix for this or a way to make it so page alias' cant be named the same as root directories? Or is this just a webhost problem like ScottC suggests? Anyone else run into this?
andrew replied on at Permalink Reply
andrew
but I believe this will only happen when pretty URLs are turned on. Try removing the line above from .htaccess and see if you're able to access '/themes/'