Issue with Pretty URL's in 5.5

Permalink
I have been having issues successfully activating the pretty url's.
I have read a couple of online forums (http://jeremeclaussen.com/blog/2010/3/30/concrete5-pretty-urls-and-dreamhost-v2-0/) and have been through and followed the steps included but to no avail unfortunately.

does anyone have any ideas what to do? when i follow the steps in the above forum my pages (other than my home page) just display an "index.php" message

HELP!!

bottlefedbaby
View Replies:
MysteriousCleon replied on at Permalink Reply
MysteriousCleon
Have you tried just changing .htaccess file in different ways? For me works this one:
# -- concrete5 urls start --
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$1 [L]
</IfModule>
# -- concrete5 urls end --

and I tried many of them... ;)
bottlefedbaby replied on at Permalink Reply
bottlefedbaby
Yes have tried putting that in the .htaccess file, but still that doesn't work??
I'm using v5.5 of C5 and when I enable Pretty URL's it tells me the .htaccess file has been updated, so I went into this file and removed all the code and pasted what you had put but that didn't work??

Any other ideas?? I would really appreciate them...
ScottC replied on at Permalink Reply
ScottC
are you running in a subdirectory?

as in google.com/concrete/index.php?

if so you need to use the provided htaccess settings.

Some hosts like yahoo small business won't allow htaccess at all, so that might be your issue.

If you have pretty urls enabled and you are permitted to use .htaccess then try loggin in and out, and navigate from your dashboard navigation.

urls including index.php will always work, the htaccess thing rewrites anything that doesn't resolve into a resource(like an image) and hands it to concrete5(it's dispatcher or effectively index.php) to try and process
bottlefedbaby replied on at Permalink Reply
bottlefedbaby
Hi - no, am not running in a subdirectory (that I am aware of). I am hosting through a NZ company called Open Host.

Have just standard hosting and can easily access and edit my .htaccess file.

I think it might be time for me to call my hosts to see if they are able to help, as I have tried logging out and logging in from both C5 as well as my host directory...

I appreciate your help though :)
bottlefedbaby replied on at Permalink Reply
bottlefedbaby
Here is the code which FINALLY worked for me:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>

Note the question make on the last rewriterule line
ThomasJ replied on at Permalink Reply
ThomasJ
My problem with pretty URLs is that when I turned it on, the links in my nav no longer works. With it off, the URL bar in the browser shows the page name in stead of the page ID number, so my fix is to just leave it off. However, I would like for clarity's sake, use pretty urls. In my case, the urls work by directly entering the "index.php?cID=129" or the page name of "/index.php/page/". When I click on a nav link, I get apache's "page not found" error page. I think that this has something to do with the fact that my site physically lives in /home/site-name/ and apache serves up the web site from a symbolic link living at /var/www/. I also believe that this is an error having to do with telling to the web server software where the modified path lies to web pages using an .htaccess file in the root directory.

The real problem lies in that everyone's system installation is different and the .htaccess file will be different for many. When you turn pretty urls on, concrete5 automatically adds a generic .htaccess file to your root directory. Everyone here is talking about the changes required to make to their .htaccess file and each one's needs are different.

I think that this is an issue that should be addressed by the c5 creators. If they are going to include pretty urls in their package, they need to at least research all possible scenarios of Server configurations and offer a multitude of suggested .htaccess configurations. Also, since each time pretty urls are turned on it overwrites the current .htaccess file, I suggest that the auto writing of the .htaccess file to the root directory be made an option in case someone needs to "cut n' paste" their alternative selection.