21294 Posts in 5734 Topics by 2602 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 554 Views |
-
how to set .htacess for static pages

27 March 2009 at 6:09am
Hi experts,
we do have static pages where our customer can see the statistics of his page
He can access them with http://<domain>/statistic (symbolic link in webserver).
But now sapphire wants to take care of this
How do I have to change my .htaccess to do this ?I have tried several configrations which worked
perfect for my statstics site, but then /admin didn't work any longer.TIA Stephan
-
Re: how to set .htacess for static pages

27 March 2009 at 8:11am
You need to exclude /statistics urls being passed to sapphire. After this line:
RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$
Add this:
RewriteCond %{REQUEST_URI} !(\\statistic)
That is, if the URL contains "\statistic", don't rewrite the url to sapphire.
-
Re: how to set .htacess for static pages

27 March 2009 at 10:15pm
Hi,
thanks, but this doesn't work
I get the 404 page (page not found) from silverstripe.
Stephan
-
Re: how to set .htacess for static pages

28 March 2009 at 12:55am
In that case, the rule is incorrect. I'm not an expert in rewriting rules, so have a look at the apache module documentation. Basically you just want to add a condition so that if the path is to your symlink, it is ignored.
| 554 Views | ||
|
Page:
1
|
Go to Top |


