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
Please help!.. thanks
in your config table, select the row where cfKey is URL_REWRITING, here you can change the cfValue value from 1 to 0
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>
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>
I removed the <IfModule> </IfModule> tags and that worked for me.
<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.
Currently seeking help from my hosting provider on why their mod-rewrite is not working.
Removing the <IfModule> </IfModule> tags worked for me as well.
Disregard last post.
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...
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.
I'd like to compare it to a non-working installation and see if i can't come up with a solution.
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/
If you are running concrete5 from a subdirectory, you need to adjust the line:
RewriteBase /
to
Rewritebase /path_to_c5/
Thanks for posting the resolution to this - I think it will help people.
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]
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]
This really helped me, thx.
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!
Now that I have this working, I will start moving my sites over!