21295 Posts in 5734 Topics by 2602 members
General Questions
SilverStripe Forums » General Questions » How to recieve a new .htaccess file...deleted mine on accident
General questions about getting started with SilverStripe that don't fit in any of the categories above.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 1107 Views |
-
How to recieve a new .htaccess file...deleted mine on accident

18 March 2010 at 8:35am
Much like the title of the thread says. I accidentally deleted this file and was wondering if anyone could chime in and help me replace this file. I have been searching and havent found anything related to replacing this if it was accidentally deleted.
Thanks!
-
Re: How to recieve a new .htaccess file...deleted mine on accident

18 March 2010 at 8:48am Last edited: 18 March 2010 8:49am
You could do a reintall and get it generated.
Here is the (normal) content:
### SILVERSTRIPE START ###
<Files *.ss>
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Files><IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /silverstripeRewriteCond %{REQUEST_URI} !(\.gif$)|(\.jpg$)|(\.png$)|(\.css$)|(\.js$)
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
</IfModule>
### SILVERSTRIPE END ###Of course RewriteBase /silverstripe has to be replaced by the place your install is.
-
Re: How to recieve a new .htaccess file...deleted mine on accident

18 March 2010 at 8:56am
How would I go about reinstalling silverstripe?
I used the installer offered from my webhosting company godadddy.com
-
Re: How to recieve a new .htaccess file...deleted mine on accident

18 March 2010 at 9:08am
Then you should use the code i put above and save it in the .htaccess file and put it on your server.
Probably you need to use
RewriteBase /
instead of
RewriteBase /silverstripe
-
Re: How to recieve a new .htaccess file...deleted mine on accident

18 March 2010 at 9:14am
Bart,
Thank you! You just saved me a whole lot of grief. I was afraid I would have to reinstall everything again!
I guess this is what happens when newbies go out making their own websites.
Jason
| 1107 Views | ||
|
Page:
1
|
Go to Top |


