Pretty URLs

Permalink
I'm very much a noob at everything here. This is my first C5 site, and my php is rudimentary, at best...

I've got concrete running in a sub-directory, /concrete, so I can test everything out before I move the whole mess to my site root and go live.

I created a .htaccess file with the following and uploaded that file to my domain root:

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


If i understand correctly, this should enable me to go to, for example, /concrete/location and access a page with that url defined under properties in the dashboard. But I keep getting a file not found error over and over again.

What am I doing wrong?

Thank you for your help!

BigBobbyD
 
BigBobbyD replied on at Permalink Reply
BigBobbyD
The site is now live in Concrete, and I updated the .htaccess in the root directory (tribalmiamiartshow {dot} com) to contain the following:
<IfModule mod_rewrite.c>
   RewriteEngine On
   RewriteBase /
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteRule ^(.*)$ index.php/$1 [L]
   </IfModule>


Still no love... I've got pages at /location, /exhibitors and /press. But none of them work... I've resorted to hard-coding the nav for the time being until I can figure this out.

My host is dreamhost, and php is fastcgi, whatever that means...

Can anyone out there can help out a noob?

Thanks...
BigBobbyD replied on at Permalink Best Answer Reply
BigBobbyD
Hopefully this may be helpful to someone else using a DreamHost or similarly configured host.

I was getting a 404 message trying to access pretty URLs, when everything was configured correctly.

The issue was that php was set to 'PHP 5 FAST CGI', which apparently is running PHP 5.2.9 which has a bug on Apache with PATH_INFO.

I switched to 'PHP 5 CGI', and everything worked without any additional configuration.

According to the fellow on the DreamHost forum, there is another option, which is to follow the directions here: wiki (dot) dreamhost (dot) com/PHP_FastCGI to perform additional steps for FastCGI to work properly. I haven't tried this yet, but intend to very soon... To be more specific, his advice: 'you don't need a custom PHP.INI file, just the right directives and the disaptcher'.

I hope this saves someone some time!
lexteo replied on at Permalink Reply
I have the same problem, different host but same PHP version 5.2.9.
The thing is that Pretty url's worked before they upgraded to this version.
Does anybody found any work around for this php bug ?
lexteo replied on at Permalink Reply
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>

it has one ? in plus
Mnkras replied on at Permalink Reply
Mnkras
make sure you arent using Fast CGI ask your host