Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter toleolu

    (@toleolu)

    Wow, since no one responded to this post, does that mean no one is doing this, or do we just have things so screwed up no one has any idea what we did????

    Toleulu – I was sooooo frsutrated with this problem, saw your post, and no replies and almost cried.

    But For me it was the fact that mod_rewrite was not turned on at my hosting.

    if you have ssh access to your hosting environment, I suggest visiting this site https://www.lavluda.com/2007/07/15/how-to-enable-mod_rewrite-in-apache22-debian/
    what worked for me was simply:
    sudo a2enmod rewrite
    # <- turns on mod_rewrite
    and /etc/init.d/apache2 restart
    # restarts apache server

    In addition you have to have your .htaccess set up correctly in the with the wordpress index.php file

    ??

    – a.b.

    also try adding the Ifblock into your sites-available conf file

    for example I have this block for my speicific situation, with the wp theme I’m using.


    <VirtualHost *:80>
    ...

    # Allow Blog Override
    <Directory /var/www/rails_apps/public/blog>
    PassengerEnabled off
    AllowOverride all
    # <-- Makes WordPress's .htaccess file work

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /blog/
    RewriteRule ^index\.php$ - [L]
    RewriteRule ^css/(.*) /blog/wp-content/themes/retlehs-roots-30dca38/css/$1 [QSA,L]
    RewriteRule ^js/(.*) /blog/wp-content/themes/retlehs-roots-30dca38/js/$1 [QSA,L]
    RewriteRule ^img/(.*) /blog/wp-content/themes/retlehs-roots-30dca38/img/$1 [QSA,L]
    RewriteRule ^plugins/(.*) /blog/wp-content/plugins/$1 [QSA,L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]
    </IfModule>
    </Directory>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WordPress on Rails, making permalinks work’ is closed to new replies.