Note that there are some explanatory texts on larger screens.

plurals
  1. PORemove 'web' from Symfony 1.4 path on shared hosting?
    primarykey
    data
    text
    <p>I've found a lot of helpful information about installing Symfony 1.4 on a shared hosting plan, but I've run into a stumbling block that's confounded me all day. </p> <p>Going to <a href="http://www.alternium.net/jobeet/index.php" rel="nofollow">http://www.alternium.net/jobeet/index.php</a> returns a 404 instead of the file at <a href="http://www.alternium.net/jobeet/web/index.php" rel="nofollow">http://www.alternium.net/jobeet/web/index.php</a>. </p> <p>/jobeet/.htaccess:</p> <pre><code>Options +FollowSymLinks +ExecCGI # Enable rewrite engine and route requests to framework RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} ^/robots.txt RewriteRule ^(.*)$ /jobeet/web/robots.txt [L] # resources RewriteCond %{REQUEST_URI} ^/images/ [OR] RewriteCond %{REQUEST_URI} ^/js/ [OR] RewriteCond %{REQUEST_URI} ^/fonts/ [OR] RewriteCond %{REQUEST_URI} ^/css/ RewriteRule ^(.*)$ /jobeet/web/$1 [L] RewriteCond %{REQUEST_URI} !^/jobeet/web/ RewriteCond %{REQUEST_URI} !^/frontend_dev.php RewriteRule ^(.*)$ /jobeet/web/index.php/$1 [QSA,L] RewriteCond %{REQUEST_URI} frontend_dev.php RewriteRule ^$ /jobeet/web/$1 [QSA,L] </code></pre> <p>/jobeet/web/.htaccess:</p> <pre><code>Options +FollowSymLinks +ExecCGI &lt;IfModule mod_rewrite.c&gt; RewriteEngine On # uncomment the following line, if you are having trouble # getting no_script_name to work #RewriteBase / # we skip all files with .something #RewriteCond %{REQUEST_URI} \..+$ #RewriteCond %{REQUEST_URI} !\.html$ #RewriteRule .* - [L] RewriteCond %{REQUEST_URI} \..+$ RewriteCond %{REQUEST_URI} !\.html$ RewriteCond %{REQUEST_URI} !\.php #RewriteCond %{REQUEST_URI} !\.php 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 ^(.*)$ index.php [QSA,L] &lt;/IfModule&gt; </code></pre> <p>Can anyone with a better understanding than I of Symfony or rewrite rules tell me where I'm going wrong?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload