Hi,
I've installed CMSMS with firendly URLs several times on a system that has PHP configured as an Apache mod. No problems.
I've now installed it on a system with PHP configured as CGI and I can't quite get it to work.
The result I get is that the rewite simply gives a 404. The server log shows the url being repeated like this:-
[Wed Nov 16 21:38:21 2005] [error] [client 62.252.64.31] File does not exist: /domains/d/u/dunstable-churches.org.uk/public_html/favicon.ico
[Wed Nov 16 21:38:21 2005] [error] [client 62.252.64.31] File does not exist: /domains/d/u/dunstable-churches.org.uk/public_html/.error
[Wed Nov 16 21:40:47 2005] [error] [client 62.252.64.31] File does not exist: /domains/d/u/dunstable-churches.org.uk/public_html/domains/d/u/dunstable-churches.org.uk/public_html/index.php
[Wed Nov 16 21:40:47 2005] [error] [client 62.252.64.31] File does not exist: /domains/d/u/dunstable-churches.org.uk/public_html/.error
Any idea what's going wrong?
Now because PHP is a CGI and not a module, I cannot have the php options in my .htaccess file. They are not the same as those in my php.ini file but in all the forum posts I cannot see an explanation of why they are needed, so I have left them out for now. Is that my problem? Because changing them will be problematic.
Of note:-
1. When the I use the request http://www.dunstable-churches.org.uk/in ... ?page=home it works but in FF and not IE, it says "waiting for www.dunstable-churches.org.uk ..."
For completeness:-
.htaccess
#php_flag magic_quotes_gpc Off
#php_flag register_globals Off
#php_flag session.use_trans_sid Off
# Make sure you have Options FollowSymLinks
# and Allow on
RewriteEngine On
Options FollowSymLinks
#Rewrites page.shtml as index.php?page
RewriteCond % !-f [NC]
RewriteRule ^(.+)\.shtml$ index.php?page=$1 [QSA]
config.php
$config['page_extension'] = '.shtml';
$config['assume_mod_rewrite'] = true;
I would really appreciate some help or guidance here - so many thanks in advance
Jeremy
URL Rewrites when using PHP as CGI show the filepath twice
Re: URL Rewrites when using PHP as CGI show the filepath twice
Yes I'm having exactly the same problems with clean ur;'s, does anyone have any ideas? My setup is almost identical as the one above.
Russ
Russ
Re: URL Rewrites when using PHP as CGI show the filepath twice
Hi,
I managed to solve my own problem eventually - I added
RewriteBase /
before the other rewirte lines. So my total .htaccess was
RewriteEngine On
Options FollowSymLinks
#Rewrites page.shtml as index.php?page
RewriteBase /
RewriteCond % !-f [NC]
RewriteRule ^(.+)\.shtml$ index.php?page=$1 [QSA]
Hope that helps
Jeremy
I managed to solve my own problem eventually - I added
RewriteBase /
before the other rewirte lines. So my total .htaccess was
RewriteEngine On
Options FollowSymLinks
#Rewrites page.shtml as index.php?page
RewriteBase /
RewriteCond % !-f [NC]
RewriteRule ^(.+)\.shtml$ index.php?page=$1 [QSA]
Hope that helps
Jeremy
Re: URL Rewrites when using PHP as CGI show the filepath twice
Intersting. Any idea that if you, say, installed cmsms in http://mydomain.com/cms/, then you would need RewriteBase /cms?