alexbakus
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: WordPress on Rails, making permalinks workalso 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>Forum: Fixing WordPress
In reply to: WordPress on Rails, making permalinks workToleulu – 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 serverIn addition you have to have your .htaccess set up correctly in the with the wordpress index.php file
??
– a.b.