Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Jun 21, 2012 1:32 pm 
Offline
Newbie

Joined: Thu Jun 21, 2012 1:27 pm
Posts: 2
I'm running Drupal and Wordpress installs on my server. I can get url rewriting to work with .htaccess for my Drupal installs but not my Wordpress installs.

I believe I have my virtual hosts file set up properly, but what am I missing?

<VirtualHost *:80>
ServerAdmin webmaster@example.com
ServerName mhb.501clients3.com
ServerAlias http://www.mhb.501clients3.com
ServerAlias mhb.501clients3.com
DocumentRoot /srv/www/501clients3.com/clients3_new/mhb
ErrorLog /srv/www/501clients3.com/logs/error.log
CustomLog /srv/www/501clients3.com/logs/access.log combined
<Directory /srv/www/501clients3.com/clients3_new/mhb>
# This relaxes Apache security settings.
AllowOverride all
Options FollowSymLinks
# MultiViews must be turned off.
Options -MultiViews
</Directory>
</VirtualHost>


Top
   
PostPosted: Thu Jun 21, 2012 2:08 pm 
Offline
Senior Member
User avatar

Joined: Thu Nov 24, 2011 12:46 pm
Posts: 139
Location: Mesa AZ
Not sure of the rest, but ServerAlias doesn't have http:// in it and you don't need to alias the same ServerName. Also, I am pretty sure you need to have all your options on one line.
Code:
<VirtualHost *:80>
    ServerAdmin webmaster@example.com    ???
    ServerName mhb.501clients3.com
    ServerAlias www.mhb.501clients3.com
    DocumentRoot /srv/www/501clients3.com/clients3_new/mhb
    ErrorLog /srv/www/501clients3.com/logs/error.log
    CustomLog /srv/www/501clients3.com/logs/access.log combined
    <Directory /srv/www/501clients3.com/clients3_new/mhb>
        # This relaxes Apache security settings.
        AllowOverride all
        Options FollowSymLinks -MultiViews
    </Directory>
</VirtualHost>

Not seeing your .htaccess it is hard to tell if you are turning on the rewrite engine etc...

_________________
Kevin a.k.a. Dweeber


Top
   
PostPosted: Thu Jun 21, 2012 2:18 pm 
Offline
Newbie

Joined: Thu Jun 21, 2012 1:27 pm
Posts: 2
It looks like the message board added the 'http://', please disregard.


This is the htaccess file:



# 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]
</IfModule>

# END WordPress

I've got the correct owner and permissions set on the htaccess file too.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group