problem with pretty urls

Permalink 3 users found helpful
I tried enabling pretty urls, copied the text to my .htaccess, but it didn't work. So I removed the .htaccess, but now I can't get anywhere in the admin panel because it still thinks I'm using pretty urls. I get the toolbar at the top, but when I click on dashboard, it won't go there, it's trying to go to mysite.com/dashboard, which doesn't work since the urlrewriting isn't working. I tried inserting index.php into the url but still can't get to the dashboard.

Please help!.. thanks

 
gueric replied on at Permalink Reply
in your config table, select the row where cfKey is URL_REWRITING, here you can change the cfValue value from 1 to 0
renic replied on at Permalink Reply
renic
is something wrong with the .htaccess directive? I've confirmed that apache is configured for .htaccess files and mod_rewrite is on.

are the "cut and paste" contents correct?:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
Lost replied on at Permalink Reply
Lost
I removed the <IfModule> </IfModule> tags and that worked for me.
renic replied on at Permalink Reply
renic
<ifModule> is working fine for me, so removing them did nothing.

Currently seeking help from my hosting provider on why their mod-rewrite is not working.
Matt replied on at Permalink Reply
Removing the <IfModule> </IfModule> tags worked for me as well.
Matt replied on at Permalink Reply
Disregard last post.
wesyah234 replied on at Permalink Reply
Thanks for all the suggestions, though I think it must be my hosting provider and the actual mod_rewrite module not working as it should...
renic replied on at Permalink Reply
renic
can someone post the httpd.conf file of an installation with pretty URLs working?

I'd like to compare it to a non-working installation and see if i can't come up with a solution.
renic replied on at Permalink Reply
renic
Thanks to Jereme, who worked through this with me at #concrete5 on efnet.

If you are running concrete5 from a subdirectory, you need to adjust the line:

RewriteBase /

to

Rewritebase /path_to_c5/
andrew replied on at Permalink Reply
andrew
Thanks for posting the resolution to this - I think it will help people.
vercasson replied on at Permalink Reply
vercasson
In addition to the RewriteBase being set correctly, I also had to slightly modify the rule to get things to work on my server.

RewriteBase /devsite2/

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Original Rule (did not work for me)
RewriteRule ^(.*)$ index.php/$1 [L]

# Modified Rule (works for me)
RewriteRule ^devsite2/(.*)$ index.php/$1 [L]
ewaite replied on at Permalink Reply
ewaite
This really helped me, thx.
wesyah234 replied on at Permalink Reply
Thanks. I was in a subdirectory, and changing the rewriteBase line did the trick!...
Now that I have this working, I will start moving my sites over!