Note that there are some explanatory texts on larger screens.

plurals
  1. POURL Rewrite Issue with Mango Blog (404 error)
    text
    copied!<p>I am working on setting up an instance of Mango Blog on an Ubuntu Server running Apache 2 HTTPD and Tomcat 6 with Railo 3.1.2. I was able to get everything setup until I started trying to implement URL rewriting for the blog URLs.</p> <p>I used a combination of <a href="http://fusiongrokker.com/post/even-prettier-ses-urls-in-mango" rel="nofollow">Adam Tuttle's</a> and <a href="http://www.john-sieber.com/post/mango-url-rewriting" rel="nofollow">John Sieber's</a> posts to get the rewrite rules. I have the site setup as follows:</p> <p>{webroot}/.htaccess</p> <pre><code>RewriteEngine on RewriteBase / # archives rule must be located before page rule for paging to work correctly RewriteRule archives/(.*)$ archives.cfm/$1 [PT,L,NC] RewriteRule page/(.*)$ page.cfm/$1 [PT,L,NC] RewriteRule post/(.*)$ post.cfm/$1 [PT,L,NC] RewriteRule author/(.*)$ author.cfm/$1 [PT,L,NC] </code></pre> <p>{apache-home}/sites-enabled/sitename</p> <pre><code>&lt;VirtualHost *:80&gt; ServerAdmin ******* DocumentRoot /var/www/******/www ServerName mango.*****.com DirectoryIndex index.cfm &lt;Directory /var/www/*******.com/www/&gt; Options Indexes FollowSymLinks MultiViews AllowOverride all Order allow,deny allow from all &lt;/Directory&gt; ErrorLog /var/log/apache2/error-*******_com.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/log/apache2/access-********_com.log combined ProxyPreserveHost Off ProxyPassMatch ^/(.+\.cf[cm])(/.*)?$ ajp://********.com:8009/ &lt;/VirtualHost&gt; </code></pre> <p>When I visit blog posts by going to /post/hello-world on the site I get a 404 error. If I go to /post.cfm/hello-world the post comes up just fine. I tried the rewrite rules against a <a href="http://martinmelin.se/rewrite-rule-tester/" rel="nofollow">rewrite tester</a>, and that said that the rewrites should work fine. I am very new to rewriting, so I apologize if this is something simple.</p>
 

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