Pretty URL issue
Permalink
Hi,
I've tried many times to get the "pretty URL" thing working, but I couldn't and I don't know if it's caused by c5 or my host or my config...
I did all sorts of tests with previous versions (5.3.2) and get "file not found". I don't know how, but I came to a conclusion that it could be a C5 issue (I guess from posts of the forum)
I installed 5.3.3.1 lately, and I was hoping the issue was fixed, and here's what I see now:
(I've installed c5 in /c of my website)
when I don't put htaccess, I get a 404 error for a pretty URL, which is obvious and expected.
when I put htaccess exactly as requested by C5 dashboard into the website's root (/), I get "No input file specified.".
when I put htaccess in the C5 installation root (/c) I get the same "No input file specified." message.
Here's the htaccess content:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /c/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
could anyone guide me toward something?!
I've tried many times to get the "pretty URL" thing working, but I couldn't and I don't know if it's caused by c5 or my host or my config...
I did all sorts of tests with previous versions (5.3.2) and get "file not found". I don't know how, but I came to a conclusion that it could be a C5 issue (I guess from posts of the forum)
I installed 5.3.3.1 lately, and I was hoping the issue was fixed, and here's what I see now:
(I've installed c5 in /c of my website)
when I don't put htaccess, I get a 404 error for a pretty URL, which is obvious and expected.
when I put htaccess exactly as requested by C5 dashboard into the website's root (/), I get "No input file specified.".
when I put htaccess in the C5 installation root (/c) I get the same "No input file specified." message.
Here's the htaccess content:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /c/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
could anyone guide me toward something?!
1. I have tested with htaccess in C5 root. Same error.
2. mod_rewrite is enabled.
3. I'm allowed to use htaccess.
I'm sure about 2 and 3, the setting is enabled in control panel, and it already works in WordPress.
When I put it for C5, I get "No input file specified" message. (in previous versions of C5, I used to get 404 error in the same situation)
2. mod_rewrite is enabled.
3. I'm allowed to use htaccess.
I'm sure about 2 and 3, the setting is enabled in control panel, and it already works in WordPress.
When I put it for C5, I get "No input file specified" message. (in previous versions of C5, I used to get 404 error in the same situation)
Are you able to access your site like /index.php/page/ with and without pretty urls enabled?
Is there any error_log file? or error in your Apache error log?
Is there any error_log file? or error in your Apache error log?
Yes, if I put a index.php in the middle of the URL, everything works. Without the index.php, that's the error.
About the log file, there's an apache log file that records requests (one line per request). I looked it up, and a 404 error was recorded for all the instances of pretty-url requests along with User Agent, IP addresses, ... nothing special.
Should there be some other log file available?
About the log file, there's an apache log file that records requests (one line per request). I looked it up, and a 404 error was recorded for all the instances of pretty-url requests along with User Agent, IP addresses, ... nothing special.
Should there be some other log file available?
2. Make sure mod_rewrite Apache module is enabled.
3. Make sure you're allowed to use .htaccess file, as some times it's disabled by default
Check with your hosting support if you are not sure about points 2 and 3.