Results 1 to 5 of 5
  1. #1
    Junior Member
    Join Date
    Aug 2005
    Posts
    8

    Default Wordpress and mod-rewrite

    I have a couple domains hosted on my Westhost account, both of which are running Wordpress (yes, two separate installs; I'm not venturing into MU territory just yet).

    The Wordpress on my main domain is able to output search engine friendly URLs without a problem, but I can't get the Wordpress install on my secondary domain to do this.

    My main domain is, of course, located here: /var/www/html
    and my secondary domain is here: /var/www/domain2

    Is Apache on Westhost set up so that mod-rewrite only works for the directories located under /var/www/html? If so, how can I get it to work for my second domain? The default Wordpress ?p=130 URLs are just so ugly and useless.

  2. #2
    Moderator wildjokerdesign's Avatar
    Join Date
    Jun 2003
    Location
    Kansas City Mo
    Posts
    5,720

    Default

    It is not mod_rewrite that is the problem but the ability to us .htaccess files outside of /var/www/html. If you want your second domain to have the same basics (includeing the ability to use .htaccess) the open up /etc/httpd/conf/httpd.conf in a plain text editor and look for the VirtualHost directive at the bottom that pertains to your second domain. Inside of the VirtualHost directive add this:
    Code:
    <Directory "/path/to/public/directory">
    	Options FollowSymLinks MultiViews Includes ExecCGI
    	AddHandler cgi-script .cgi .pl .py .sh
    	AllowOverride All
    	Order allow,deny
    	Allow from all
    	</Directory>
    You need to replace /path/to/public/directory with the path to your second domain. Restart your account via the Site Manager and you should be good to go.
    Shawn
    Please remember your charity of choice: http://www.redcross.org

    Handy Links: wildjokerdesign.net | Plain Text Editors: EditPlus | Crimson

  3. #3
    Junior Member
    Join Date
    Aug 2005
    Posts
    8

    Default

    Thanks, Shawn! It worked like a charm.


  4. #4
    Moderator wildjokerdesign's Avatar
    Join Date
    Jun 2003
    Location
    Kansas City Mo
    Posts
    5,720

    Default

    Your welcome.
    Shawn
    Please remember your charity of choice: http://www.redcross.org

    Handy Links: wildjokerdesign.net | Plain Text Editors: EditPlus | Crimson

  5. #5

    Default Oh yes! Thank you as well. Problem solved

    Quote Originally Posted by xenith View Post
    Thanks, Shawn! It worked like a charm.

    Very helpful.. thx

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •