Forum Moderators: phranque

Message Too Old, No Replies

silverstripe alias and mod rewrite htaccess problems

         

pixelchild

11:20 am on Oct 7, 2009 (gmt 0)

10+ Year Member



Hi,

Im running wamp and have set up an alias ie 'H:/Production'

However my mod_rewrite paths i beleive is still looking in the default 'C:/wamp/www' folder. Im running silverstripe and i get the following error when visiting the site:


*******************************
Not Found

The requested URL /Production/Pixelchildv2/www/sapphire/main.php was not found on this server.
*******************************


Im 100% positive that file is there and exists.

Please find below my .htaccess file, any help is appreciated


### SILVERSTRIPE START ###
<Files *.ss>
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Files>

<IfModule mod_rewrite.c>
RewriteEngine On

RewriteCond %{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 ###

Caterham

12:46 pm on Oct 7, 2009 (gmt 0)

10+ Year Member



Read about the RewriteBase directive.

Syntax:

RewriteBase /alias

while

/alias
is the defined URL-path for
H:/Production
.

Alias /alias H:/Production