This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » symfony projects » askeet » day 1 problem
day 1 problem [message #4353] Tue, 28 March 2006 06:52
pliersn  is currently offline pliersn
Messages: 1
Registered: March 2006
Junior Member
Hi,

I try to make my askeet link like (http://localhost/askeet), so I put this code in httpd.conf

Alias /askeet D:/An/askeet/web
Alias /sf C:/PHP/PEAR/data/symfony/web/sf

<Directory "D:/An/askeet/web">
   AllowOverride All
</Directory>


and edit the askeet/web/.htaccess file like this

Options +FollowSymLinks +ExecCGI

<IfModule mod_rewrite.c>
  RewriteEngine On

  # we skip all files with .something
  RewriteCond %{REQUEST_URI} \..+$
  RewriteCond %{REQUEST_URI} !\.html$
  RewriteRule .* - [L]

  # we check if the .html version is here (caching)
  RewriteRule ^$ index.html [QSA]
  RewriteRule ^([^.]+)$ $1.html [QSA]
  RewriteCond %{REQUEST_FILENAME} !-f

  # no, so we redirect to our front web controller
  RewriteRule ^(.*)$ /askeet/index.php [QSA,L]
</IfModule>

# big crash from our front web controller
ErrorDocument 500 "<h2>Application error</h2>symfony application failed to start properly"


The link http://localhost/askeet is ok but the link http://localhost/askeet/frontend_dev.php/ is not. Some css files were boken. This is some lines in its HTML code:

<link rel="stylesheet" type="text/css" media="screen" href="askeet/web/css/askeet/web/sf/css/sf_debug_stats/main.css" />
<link rel="stylesheet" type="text/css" media="screen" href="askeet/web/css/askeet/web/css/main.css" />
<script type="text/javascript" src="askeet/web/js/askeet/web/sf/js/prototype/prototype.js"></script>


How to fix this error?

PliersN

P.S: Sorry for my English
Previous Topic:day 1 permissions
Next Topic:pagination suggestion
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software