The path should be from the document root of the web server, which I would think would simply be...
RewriteRule ^(.*)$ /mysubdirectoryname/index.php?q=$1 [L,QSA]
That it works on your configuration that way has me wondering how, and does it not work with the path simply specified from the document root?
<base href="[(site_url)]" />
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
RewriteBase /
RewriteRule ^(.*)$ /index.php?q=$1 [L,QSA]
http://www.beverleyinpictures.co.uk/countyhall.html
http://www.beverleyinpictures.co.uk/map.html?refurl=%2Findex.php%3Fq%3Dcountyhall.html&err=1
write_to_log("docmethod=".$this->documentMethod."\n");
$this->documentIdentifier = $this->getDocumentIdentifier($this->documentMethod);
write_to_log("docid=".$this->documentIdentifier."\n");
function getDocumentIdentifier($method) {
write_to_log("getdocid, method=".$method."\n");
// function to test the query and find the retrieval method
docmethod=alias getdocid, method=alias docid=railwaystreet.html getdocid, method=id getdocid, method=id
http://www.beverleyinpictures.co.uk/map.html?refurl=%2Findex.php%3Fq%3Drailwaystreet.html&err=1
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
Hi, it’s:
RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
Thanks! Andy
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?q=$1 [L,QSA]Andy, I just clicked through some pages in your site and the FURL’s seemed to work fine. What problem are you currently having? Have you tried clearing the cache of your browser or tried using another browser or computer?
Hi Paul,
I tried that and it still fails eventually. I checked and my site is running. You can see it here: http://www.beverleyinpictures.co.uk.
I’m not sure it is the friendly URLs that is causing the problem - it seems like PHP calls the same function three times for some reason, and this only happens when friendly URLs are enabled.
Andy
This discussion is closed to further replies. Keep calm and carry on.