Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter vtinq

    (@vtinq)

    Solved: I edited my sites-available/site.com.conf and in the <Directory /> block changed “AllowOveride None” to “AllowOveride All”.

    Thread Starter vtinq

    (@vtinq)

    Yes, that block is in my .htaccess file. I’ve tried to chmod 666 and even chmod 777 the .htaccess file. Changing permalinks elicits “Permalinks Saved” but the 404s continue.

    Thread Starter vtinq

    (@vtinq)

    I used the following redirect code in my .htaccess file to send visitors to my WordPress multisite blog, but the browser location bar displays parent.com/child rather than the olddomain.com.

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    RewriteCond %{HTTP_HOST} ^olddomain.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www.olddomain.com$
    RewriteRule (.*)$ http://www.newdomain.org$1 [R=301,L]
    </IfModule>
    Options +FollowSymLinks
    
    # END WordPress

    How do I redirect olddomain.com to newdomain.org and keep the olddomain.com URL in the browser location bar?

    Thread Starter vtinq

    (@vtinq)

    Fixed. I forgot I had an index.html file in /var/www/wordpress for testing. I deleted the file, reloaded http://localhost/wordpress/?p=1 and the “Hello World!” post appeared.

    Thread Starter vtinq

    (@vtinq)

    PHP works in most areas. My Nginx.conf root is /var/www. The WordPress install is at /var/www/wordpress. I can do the install with localhost/wordpress/wp-admin/install.php. I can go to the admin page with localhost/wordpress/wp-admin. But when I try to view the site (localhost/wordpress/) or view a post (such as localhost/wordpress/hello-world), I get a blank white page.

    I’m not clear on what you mean by the need to enable non-default permalinks. I changed permalinks to numeric, then entered the URL http://localhost/wordpress/archives/1 and Nginx reports “404 Not Found.”

Viewing 5 replies - 1 through 5 (of 5 total)