Submit Your Article Forum Rules

Results 1 to 7 of 7

Thread: WordPress htaccess issues

  1. #1

    WordPress htaccess issues

    Hi All,

    I'm having issues with wordpress and .htaccess.

    I have multiple subdomains under one server. Within each subdomain is a wordpress blog. To avoid canonicalization, I rewrite domain.com to www.domain.com. Unfortunately, wordpress only works as a folder extension of a highlevel domain. (eg.maindomain.com/subdomain/blog/)
    I tried a few tricks mentioned on perishablepress.com and on WP.org, but to no avail.

    I was hoping someone here with experience might have a quick solution.

    Thanks in advance,
    Scott

    P.S. I would also like to access my wordpress blog via blog.subdomain.com if possible.
    Digital Marketer / Ecommerce Lead / Entrepreneur

  2. #2
    Senior Member
    Join Date
    Dec 2007
    Posts
    212

    Re: WordPress htaccess issues

    Quote Originally Posted by imsickofwebpro View Post
    Unfortunately, wordpress only works as a folder extension of a highlevel domain. (eg.maindomain.com/subdomain/blog/)

    (...)

    P.S. I would also like to access my wordpress blog via blog.subdomain.com if possible.
    First of all, create the subdomains. Most of the times, this is easy through the control panel of your host.

    Then, within the wordpress control panel, define the canonical URL of each wordpress blog as being the subdomain.

    Only when these steps are done, you can fine tune your .htaccess files.

    Jean-Luc
    200ok.eu Broken Link Checker finds 404 errors, error pages with 200 ok status, missing images, protocol errors, password protected pages, bad domain names, redirect loops, parking pages, ...

  3. #3
    Senior Member
    Join Date
    Apr 2004
    Posts
    393

    Re: WordPress htaccess issues

    Instead of directly accessing your htaccess file, you may want to use the wp_rewrite plugin. Because I have had problems in the past with wp "randomly" overwriting my htaccess file and screwing things up.

    I should take my own advice, because I have just went into the WP code and changed their function around.

  4. #4
    Member tmaster's Avatar
    Join Date
    May 2005
    Posts
    50

    Re: WordPress htaccess issues

    I have several subdomains that work just fine with wp each one has its own subdirectory.
    I dont understand why you are saying that WP only works as folder extension.

    When I turn on a subdomain in my server that new domain points to the subdirectory of the same name and wp works just fine in it. Why are you fooling with .htaccess?
    ---
    * SLMR v2.0 * Have many Nice days

  5. #5
    Senior Member
    Join Date
    Apr 2004
    Posts
    393

    Re: WordPress htaccess issues

    tmaster,

    It could be his current host, some handle the folder structure for subdomains strangly. But it could also be his setup.

  6. #6

    Re: WordPress htaccess issues

    Thanks guys. I'll try a few of the suggestions and get back to this thread with my results.


    Quote Originally Posted by tmaster View Post
    I have several subdomains that work just fine with wp each one has its own subdirectory.
    I dont understand why you are saying that WP only works as folder extension.

    When I turn on a subdomain in my server that new domain points to the subdirectory of the same name and wp works just fine in it. Why are you fooling with .htaccess?
    I pointed the new url to the subdomain after uploading the corresponding website and blog. I've tried moving a wordpress blog up a directory before and ran into the same issues. This particular website is on a netfirms account.
    Digital Marketer / Ecommerce Lead / Entrepreneur

  7. #7

    Re: WordPress htaccess issues

    Thanx guys! I reinstalled wordpress and added the following to .htaccess. Funny, when i tried this fix the first time, it didn't work. Marketing beats coding anyday!

    Solution:

    # disable the rewrite engine
    RewriteEngine on


    # BEGIN wordpress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /blog/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]
    </IfModule>
    # END wordpress
    Digital Marketer / Ecommerce Lead / Entrepreneur

Similar Threads

  1. Wordpress SEO & Security Friendly .htaccess & Pugins
    By Webnauts in forum Internet Security Discussion Forum
    Replies: 23
    Last Post: 03-29-2012, 08:50 AM
  2. 301 reditects, .htaccess and Wordpress
    By morestar in forum IT Discussion Forum
    Replies: 24
    Last Post: 11-24-2009, 07:02 PM
  3. Need help on wordpress .htaccess
    By loosapphire in forum Search Engine Optimization Forum
    Replies: 11
    Last Post: 10-09-2009, 04:00 AM
  4. .HTACCESS and PHP issues
    By getmea in forum IT Discussion Forum
    Replies: 12
    Last Post: 12-07-2008, 10:27 AM
  5. .htaccess issues
    By Sub Rosa in forum IT Discussion Forum
    Replies: 1
    Last Post: 07-06-2007, 06:28 PM

Posting Permissions

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