21308 Posts in 5737 Topics by 2603 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 448 Views |
-
Automatic Page Forwarding

14 February 2011 at 8:41am
Hello. This is my first post here. I have set up a site using SilverStripe and I am loving it. However, there is one big issue. Before I installed SilverStripe, I had a directory set aside for some iPhone web-apps. In this case, lets say it is "http://example.com/iphone". Since I installed SilverStripe, everytime I try to access that directory/page, I get redirected to an error page generated by SilverStripe with the following error message:
"Page not foundSorry, it seems you were trying to access a page that doesn't exist.
Please check the spelling of the URL you were trying to access and try again."
I am certain the directory is there, but I am unable to access/view it unless I remove my installation of SilverStripe. How can I fix this?
-
Re: Automatic Page Forwarding

14 February 2011 at 6:53pm
You'll probably want to add a Rewrite Condition to your .htaccess in the root folder:
#Add The Following Line
RewriteCond %{REQUEST_URI} !^/iphone/RewriteCond %{REQUEST_URI} !(\.gif$)|(\.jpg$)|(\.png$)|(\.css$)|(\.js$)
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
| 448 Views | ||
|
Page:
1
|
Go to Top |

