I Still Need HELP with WordPress htaccess on Apache server PLEASE

34 replies
I just created and uploaded a new PUBLIC video explaining the problem in detail.

YouTube video explanation: I Need HELP with WordPress htaccess PLEASE - YouTube

If anyone is really experienced in htaccess and multiple domains on one account - should not matter if it's on GDDY, hostgator or anywhere, it's still htaccess on Apache - or if anyone knows of anyone who knows of someone who knows how to fix this, it will very much appreciated! Thank you!

This "might" be an Apache problem, but after three emails and a phone call, GDDY tech support says it's a problem with WordPress and no one so far has been able to help. :confused:

I've also asked this question on StackOverflow: http://stackoverflow.com/questions/1...robably-apache

(As an aside - again - please no derogatory remarks about gddy. That's not necessary.)
#apache #htaccess #server #wordpress
  • Profile picture of the author topnichewebsites
    in your root .htaccess you need to add this
    ErrorDocument 404 /404page.html <-- whatever you call you 404 custom page

    for each site you have in other domains you need just use the regular WP default htacess file in there root dir.

    Let me know if that works for you
    That should fix you up
    Signature
    http://pixelcovers.com/ <- eBook add eCovers

    https://www.unicommercesolutions.com <- WordPress Websites and Maintenance
    {{ DiscussionBoard.errors[7279788].message }}
    • Profile picture of the author ksmusselman
      Originally Posted by topnichewebsites View Post

      in your root .htaccess you need to add this
      ErrorDocument 404 /404page.html <-- whatever you call you 404 custom page

      for each site you have in other domains you need just use the regular WP default htacess file in there root dir.

      Let me know if that works for you
      That should fix you up
      Where in the htaccess file do I place this part of the code? Before or after the
      </IfModule>
      # END WordPress

      Also, my other sites/domains are not WordPress. They're html sites. I know I had put an errordocument line in the htaccess file before, and what happened was every page or category from ksmusselman.com went to the custom 404 page for the-bookmarks-store.com It's all so confusing. :-/
      Signature
      Do You Vape? Submit a Guest Post! SmokersLogicEcigs.com
      Info Blog about Ecigs & Personal Vaporizers
      {{ DiscussionBoard.errors[7279807].message }}
      • Profile picture of the author ksmusselman
        That didn't work. Here are two versions of htaccess that I've tried, with the exact results as in the video. :confused:

        VERSION #1
        # 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>
        ErrorDocument 404 /page-not-found.html
        # END WordPress


        VERSION #2
        # 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]
        ErrorDocument 404 /page-not-found.html

        </IfModule>
        # END WordPress
        Signature
        Do You Vape? Submit a Guest Post! SmokersLogicEcigs.com
        Info Blog about Ecigs & Personal Vaporizers
        {{ DiscussionBoard.errors[7279884].message }}
  • Profile picture of the author topnichewebsites
    I would do the above and get the main working with the 404 and other WP sites operational first then tackle the HTML sites separately. Those HTML sites should already have there own .htacess files in there root.

    Sorry add that code I have above before the #END WordPress
    Signature
    http://pixelcovers.com/ <- eBook add eCovers

    https://www.unicommercesolutions.com <- WordPress Websites and Maintenance
    {{ DiscussionBoard.errors[7279828].message }}
    • Profile picture of the author ksmusselman
      Originally Posted by topnichewebsites View Post

      I would do the above and get the main working with the 404 and other WP sites operational first then tackle the HTML sites separately. Those HTML sites should already have there own .htacess files in there root.

      Sorry add that code I have above before the #END WordPress
      Okay, did that, but it's still coming up as a one or the other deal. If the WordPress blog (ksmusselman.com) works, the html sites don't.

      If the html sites work, the WP blog doesn't.

      I don't know what htaccess files to put in the other directories and I don't know how to code the htaccess in the root (blog) directory so that it doesn't override what's in the other directories.

      I NEED to have the custom 404 page active on the-bookmarks-store.com AND I need the pages and categories to work on the ksmusselman.com blog - at the same time.

      So I need to know - can this even be done? Or is there something in the Apache server that won't ALLOW it to happen? Or is there a piece of code that I'm missing that won't allow it to happen?

      Or do I need to convert ALL of my sites to WP just because the site that's on the root directory is WP and there will always be a conflict with the other html sites?
      Signature
      Do You Vape? Submit a Guest Post! SmokersLogicEcigs.com
      Info Blog about Ecigs & Personal Vaporizers
      {{ DiscussionBoard.errors[7279959].message }}
  • Profile picture of the author SteveJohnson
    Do you have these separate sites set up as 'addon' domains in your hosting account, or are you just pushing the domain to a subdirectory?

    In other words, are you using an 'economy' GD hosting account that only supports one domain, or are you on a multiple-domain account?
    Signature

    The 2nd Amendment, 1789 - The Original Homeland Security.

    Gun control means never having to say, "I missed you."

    {{ DiscussionBoard.errors[7280305].message }}
  • Profile picture of the author SteveJohnson
    I'll explain a little why I asked the above questions: if you are using a 'Deluxe' or better GD hosting account, then a request to kmusselman.com should never encounter the .htaccess file on the-bookmark-store.com. If this is the case, it IS a NO-NO-NO-NO-NO-NO-NO- problem. Their server setup should never allow two domains to interact with each other.

    On the other hand, if you're trying to run multiple domains out of an 'Economy' package, you're going to continue to run into major headaches. WordPress handles 404s internally when any kind of permalink structure is used. The .htaccess file checks to see if the file requested exists. If it does, it is served. If it doesn't, the request is shunted to WordPress. You'll have to come up with a VERY complicated set of rewrite rules to get around this, and you won't be able to use the ErrorDocument directive, you'll have to order Apache to serve it up and send a 404 header.
    Signature

    The 2nd Amendment, 1789 - The Original Homeland Security.

    Gun control means never having to say, "I missed you."

    {{ DiscussionBoard.errors[7280391].message }}
  • Profile picture of the author SteveJohnson
    You posted while I was explaining further...

    Go into your NO-NO-NO-NO-NO-NO-NO- account, and look to see what plan you're signed up on. It should say 'Deluxe' or 'Economy'.

    EDIT - at the moment, I am totally pissed off at the WF. I need to talk about G O DAd and it gets changed to this NONONONO bullshit
    Signature

    The 2nd Amendment, 1789 - The Original Homeland Security.

    Gun control means never having to say, "I missed you."

    {{ DiscussionBoard.errors[7280415].message }}
  • Profile picture of the author SteveJohnson
    BTW, making a 10 minute video was not necessary. I almost didn't watch at all. You're better off to explain your problem as best you can and wait for questions if anyone has them.
    Signature

    The 2nd Amendment, 1789 - The Original Homeland Security.

    Gun control means never having to say, "I missed you."

    {{ DiscussionBoard.errors[7280448].message }}
    • Profile picture of the author ksmusselman
      Originally Posted by SteveJohnson View Post

      BTW, making a 10 minute video was not necessary. I almost didn't watch at all. You're better off to explain your problem as best you can and wait for questions if anyone has them.
      Maybe not, but I got tired of typing and re-explaining. It was either that or transcribe my recording. I've been at this for three days without any relief.

      Anyway, my GD plan is "Hosting - Shared - Deluxe - Linux - Monthly (recurring)."

      I've emailed GD three times with an exact explanation and each time they gave me the same response - it's an Apache problem and I need to do some coding; it's inside the htaccess, etc., etc.

      So should I call GD again? I'm about to the point where I'll give somebody access to my computer AND my GD account to fix this. I'm not a programmer. This stuff is really foreign to me.

      I've gotten three different answers from three different sources and the results are always the same. It's really making me nuts.
      Signature
      Do You Vape? Submit a Guest Post! SmokersLogicEcigs.com
      Info Blog about Ecigs & Personal Vaporizers
      {{ DiscussionBoard.errors[7280519].message }}
  • Profile picture of the author SteveJohnson
    The Deluxe account allows for multiple domains, so you should be safe there.

    Here's the raw deal, and you can quote me to GD's support: the .htaccess file for one domain should not - never, ever - affect any other domains, even in a multiple account environment. This isn't an Apache problem, it's a problem with your hosting account. If the .htaccess file for the-bookmark-store.com is affecting kmusselman.com or vice-versa, something is wrong at the server level. No two ways about it.

    Even in subdirectories - for example, your bookmarks site, where you have WP in /blog - WP-written .htaccess files have a RewriteBase directive, which restricts rewriting to that subdirectory. That's how you can have a WP install 'under' an HTML site and permalinks will still work for the WP install.

    People talk trash about GD hosting because their unconventional way of going about things sometimes causes problems. There are, even now, popular WP plugins that won't work with GD hosting because of their setup.
    Signature

    The 2nd Amendment, 1789 - The Original Homeland Security.

    Gun control means never having to say, "I missed you."

    {{ DiscussionBoard.errors[7280588].message }}
    • Profile picture of the author ksmusselman
      Originally Posted by SteveJohnson View Post

      The Deluxe account allows for multiple domains, so you should be safe there.

      Here's the raw deal, and you can quote me to GD's support: the .htaccess file for one domain should not - never, ever - affect any other domains, even in a multiple account environment. This isn't an Apache problem, it's a problem with your hosting account. If the .htaccess file for the-bookmark-store.com is affecting kmusselman.com or vice-versa, something is wrong at the server level. No two ways about it.

      Even in subdirectories - for example, your bookmarks site, where you have WP in /blog - WP-written .htaccess files have a RewriteBase directive, which restricts rewriting to that subdirectory. That's how you can have a WP install 'under' an HTML site and permalinks will still work for the WP install.

      People talk trash about GD hosting because their unconventional way of going about things sometimes causes problems. There are, even now, popular WP plugins that won't work with GD hosting because of their setup.
      I'm on the phone with them now. THIS rep "gets it." (I did quote you by the way, thank you! :-) He knows EXACTLY what I'm talking about and he's got me on hold to talk to their server people to see about getting me answers.

      But this guy actually brought up my websites and walked through the problems with me so he was able to see what was going on and why it has to be changed somehow.

      At this point, I don't care if I have to have a 10-page workaround code in my .htaccess - as long as it works!

      Will update later on... one way or the other.
      Signature
      Do You Vape? Submit a Guest Post! SmokersLogicEcigs.com
      Info Blog about Ecigs & Personal Vaporizers
      {{ DiscussionBoard.errors[7280644].message }}
      • Profile picture of the author ksmusselman
        Back to square one.

        According to their server people, the problem is in the .htaccess files.

        Each domain's directory needs its own .htaccess file that tells the server where to look for its specific page-not-found file.

        If the other domains do not have their own .htaccess, Apache defaults to the one in the root directory, in which case I get an Internal Server Error on each of my other html domains.

        Do I know how to code an .htaccess file? NOPE.

        I'm still trying to do that.

        Meanwhile, I'm losing traffic and sales on the bookmarks site because of not having an error page.

        I am SO right now.
        Signature
        Do You Vape? Submit a Guest Post! SmokersLogicEcigs.com
        Info Blog about Ecigs & Personal Vaporizers
        {{ DiscussionBoard.errors[7280961].message }}
        • Profile picture of the author Mkj
          It looks to me that your problem could well be your file and domain structure. You have your html sites within your wordpress installation. That doesn't look at all right to me. You say you reworked your wordpress site? What did you do? At the moment the htaccess file is acting on all of your domains because of the above. The correct way the domains should show should be something like this:

          /blogging - wordpress installation - domain
          /jimscustomcrafts - domain
          /jimsbutchersupplies - domain

          and so on.

          Where exactly is your wordpress site installed? Surely it must be in the category called 'blogging'? If that is the case the htaccess belongs in that category and not where you are placing it.

          If you are running multiple domains why have you wordpress files outside of any domain setup category? The categories called wp-admin, wp-content and wp-includes are all belonging to wordpress. These are outside of any domain setup at the moment along with all the rest of a wordpress installation.
          {{ DiscussionBoard.errors[7281188].message }}
          • Profile picture of the author SteveJohnson
            Originally Posted by Mkj View Post

            If you are running multiple domains why have you wordpress files outside of any domain setup category? The categories called wp-admin, wp-content and wp-includes are all belonging to wordpress. These are outside of any domain setup at the moment along with all the rest of a wordpress installation.
            The root directory serves the main domain name of the account; the 'addon' domains are mapped to subdirectories.

            Originally Posted by ksmusselman View Post

            Back to square one.

            According to their server people, the problem is in the .htaccess files.

            Each domain's directory needs its own .htaccess file that tells the server where to look for its specific page-not-found file.

            If the other domains do not have their own .htaccess, Apache defaults to the one in the root directory, in which case I get an Internal Server Error on each of my other html domains.

            Do I know how to code an .htaccess file? NOPE.

            I'm still trying to do that.

            Meanwhile, I'm losing traffic and sales on the bookmarks site because of not having an error page.

            I am SO right now.
            This is why people get frustrated with GD. On a 'standard' virtualhost setup, parent directories don't interact with children. IOW, the addon domain should NOT inherit the parent directory's htaccess rules. That's just stupid.

            So you'll have to make an .htaccess file for each of your addon domains, as all of them live under the main domain ksmusselman.com (and it only has WP, correct?).

            Fortunately, it's easy. Copy an existing .htaccess file to a subdirectory, edit that one, and copy IT to all of the others that need it.

            Very important - make sure you take out any ErrorDocument directives in any htaccess files that have the WP block. You'll likely cause a 500 server error.

            The ONLY line that should be in the file is
            Code:
            ErrorDocument 404 /page-not-found.html
            and it should be on the first line.

            So - a recap... any directories that have WordPress in them should have the WP-generated htaccess file that you should NOT change. Any directories that have .html files in them should have the single-line ErrorDocument htaccess file.

            Clear as mud?
            Signature

            The 2nd Amendment, 1789 - The Original Homeland Security.

            Gun control means never having to say, "I missed you."

            {{ DiscussionBoard.errors[7281328].message }}
            • Profile picture of the author Mkj
              Originally Posted by SteveJohnson View Post

              The root directory serves the main domain name of the account; the 'addon' domains are mapped to subdirectories.
              Weird. I run my own server and I can see why the above would cause all sorts of problems.

              Is it possible to move the main domain to a subdirectory of it's own instead of in the root as it is now?
              {{ DiscussionBoard.errors[7281398].message }}
              • Profile picture of the author SteveJohnson
                Originally Posted by Mkj View Post

                Weird. I run my own server and I can see why the above would cause all sorts of problems.

                Is it possible to move the main domain to a subdirectory of it's own instead of in the root as it is now?
                It's possible to run WP from a subdirectory, but the index and htaccess files have to stay in the parent. Unfortunately, that isn't a solution.

                Stupid GD. They always have to do things their own way.
                Signature

                The 2nd Amendment, 1789 - The Original Homeland Security.

                Gun control means never having to say, "I missed you."

                {{ DiscussionBoard.errors[7281418].message }}
                • Profile picture of the author ksmusselman
                  Originally Posted by SteveJohnson View Post

                  It's possible to run WP from a subdirectory, but the index and htaccess files have to stay in the parent. Unfortunately, that isn't a solution.

                  Stupid GD. They always have to do things their own way.
                  Oh, okay. Bummer...

                  Like I said, if I can find the right code configurations for this elusive Apache server, I'll be fine. I just need either something added to the root .htaccess that speaks to the server about the other domain access and/or the correct code inside of the other domains.

                  I should have stayed in programming school..
                  Signature
                  Do You Vape? Submit a Guest Post! SmokersLogicEcigs.com
                  Info Blog about Ecigs & Personal Vaporizers
                  {{ DiscussionBoard.errors[7281430].message }}
              • Profile picture of the author ksmusselman
                Originally Posted by Mkj View Post

                Weird. I run my own server and I can see why the above would cause all sorts of problems.

                Is it possible to move the main domain to a subdirectory of it's own instead of in the root as it is now?
                Yes, it is weird. And that it all started on Halloween makes even more weirder and eerier!

                But yeah, that's something that's crossed my mind, and if I can't come up with the right code to put into the .htaccess files for the other domains, I may just have to do that, although it's not something I'm looking forward to doing.
                Signature
                Do You Vape? Submit a Guest Post! SmokersLogicEcigs.com
                Info Blog about Ecigs & Personal Vaporizers
                {{ DiscussionBoard.errors[7281426].message }}
            • Profile picture of the author ksmusselman
              Originally Posted by SteveJohnson View Post

              So - a recap... any directories that have WordPress in them should have the WP-generated htaccess file that you should NOT change. Any directories that have .html files in them should have the single-line ErrorDocument htaccess file.

              Clear as mud?
              Crystal ... but it didn't work. I even tried it with a fresh, brand new, empty file, put the code in. Uploaded it, renamed it to .htaccess. Not happening.
              Signature
              Do You Vape? Submit a Guest Post! SmokersLogicEcigs.com
              Info Blog about Ecigs & Personal Vaporizers
              {{ DiscussionBoard.errors[7281437].message }}
              • Profile picture of the author ksmusselman
                Looks like I may be headed over to Host Gator after all. I'll have to talk to hubby about this, see if there are any of his domains he doesn't want anymore.

                Anyone want to buy a hunting blog? ROFL
                Signature
                Do You Vape? Submit a Guest Post! SmokersLogicEcigs.com
                Info Blog about Ecigs & Personal Vaporizers
                {{ DiscussionBoard.errors[7281454].message }}
          • Profile picture of the author ksmusselman
            Originally Posted by Mkj View Post

            It looks to me that your problem could well be your file and domain structure. You have your html sites within your wordpress installation. That doesn't look at all right to me. You say you reworked your wordpress site? What did you do? At the moment the htaccess file is acting on all of your domains because of the above. The correct way the domains should show should be something like this:

            /blogging - wordpress installation - domain
            /jimscustomcrafts - domain
            /jimsbutchersupplies - domain

            and so on.

            Where exactly is your wordpress site installed? Surely it must be in the category called 'blogging'? If that is the case the htaccess belongs in that category and not where you are placing it.

            If you are running multiple domains why have you wordpress files outside of any domain setup category? The categories called wp-admin, wp-content and wp-includes are all belonging to wordpress. These are outside of any domain setup at the moment along with all the rest of a wordpress installation.
            No. I reworked my HTML site, the-bookmarks-store. That's when I noticed that my two remaining html sites were not correctly redirecting to their custom 404 pages. I went to test an old .html page to make sure it was going to the new custom 404 and that's when I found out about ksmusselman.com having the conflict.

            wp-admin, wp-content, etc. are on the root directory of ksmusselman, which is a complete WP installation, yes. When you go to ksmusselman.com, that is a WP site. So that's correct.

            /blogging isn't a WP installation. That's a subdomain under ksmusselman that I created for a custom squeeze page and that works fine. There's nothing "installed" in there, just the files that make up that one squeeze page.

            /jimsbutchersupplies redirects to its WP installation in its subdomain /deer_hunting_blog. I set that site up in html and installed WP in a subdomain. That was set up correctly - WP in a subdomain and it's working fine too.

            And all of my other domains/sites are WP installed into their own directories and they're all working fine too. But then, they all have their own .htaccess files in their directories.

            Which leaves my last two conflicting domains/sites - jimscustomcrafts and the-bookmarks-store. Those are not WP installations, although they have WP blogs installed on their SUB-domains. The subdomain blogs are working fine. The "parent" sites are not, and it's only concerning the 404 Page Not Found error. Everything else is working fine.

            From what I've been told from GD, these two domains need their own specific .htaccess files in their directory folders in order for everything to work correctly.

            And I have not found an .htaccess configuration yet that will work.
            Signature
            Do You Vape? Submit a Guest Post! SmokersLogicEcigs.com
            Info Blog about Ecigs & Personal Vaporizers
            {{ DiscussionBoard.errors[7281415].message }}
  • Profile picture of the author SteveJohnson
    EDIT: we're crossing posts LOL disregard the next sentence
    Read a couple of posts up where I outlined what should go in the htaccess file for the two html domains.

    If you do that and it screws up the WP installs in those domains, add this to the top of the WP htaccess files:
    Code:
    ErrorDocument 404 default
    In normal Apache, that sets the error doc back to the server default and overrides any ErrorDocument directives in parent directories.
    Signature

    The 2nd Amendment, 1789 - The Original Homeland Security.

    Gun control means never having to say, "I missed you."

    {{ DiscussionBoard.errors[7281439].message }}
  • Profile picture of the author SteveJohnson
    When you say, "didn't work" I don't have a lot to go on. Did you get 500 errors, and what URLs did you get them on?
    Signature

    The 2nd Amendment, 1789 - The Original Homeland Security.

    Gun control means never having to say, "I missed you."

    {{ DiscussionBoard.errors[7281448].message }}
    • Profile picture of the author ksmusselman
      Originally Posted by SteveJohnson View Post

      When you say, "didn't work" I don't have a lot to go on. Did you get 500 errors, and what URLs did you get them on?
      Yes, 500 Internal Server errors when I typed in a non-existent page to both the-bookmarks-store and jimscustomcrafts.

      The monster blog - frankenblog - creating the havoc is still working fine with its WP-generated .htaccess file.
      Signature
      Do You Vape? Submit a Guest Post! SmokersLogicEcigs.com
      Info Blog about Ecigs & Personal Vaporizers
      {{ DiscussionBoard.errors[7281461].message }}
      • Profile picture of the author ksmusselman
        Now would probably be the best time to move hosts. Our GD host package expires at the end of the month.

        How does Host Gator work with WP? Are they okay?

        I'll most likely rebuild my husband's craft site in WP so he can manage it himself. The bookmarks will stay html. Too much there to do another renovation.
        Signature
        Do You Vape? Submit a Guest Post! SmokersLogicEcigs.com
        Info Blog about Ecigs & Personal Vaporizers
        {{ DiscussionBoard.errors[7281468].message }}
        • Profile picture of the author SteveJohnson
          Originally Posted by ksmusselman View Post

          Now would probably be the best time to move hosts. Our GD host package expires at the end of the month.

          How does Host Gator work with WP? Are they okay?

          I'll most likely rebuild my husband's craft site in WP so he can manage it himself. The bookmarks will stay html. Too much there to do another renovation.
          HG is great with WP, it's what I have 90% of my and my client's sites on. If you decide to go with them, get the Baby plan and use ILIKEWORDPRESS as the coupon code; gets you the first month for a penny.
          Signature

          The 2nd Amendment, 1789 - The Original Homeland Security.

          Gun control means never having to say, "I missed you."

          {{ DiscussionBoard.errors[7281482].message }}
      • Profile picture of the author SteveJohnson
        Originally Posted by ksmusselman View Post

        Yes, 500 Internal Server errors when I typed in a non-existent page to both the-bookmarks-store and jimscustomcrafts.

        The monster blog - frankenblog - creating the havoc is still working fine with its WP-generated .htaccess file.
        And the htaccess file for both has only the one line for the ErrorDoc in it? That shouldn't be causing an error.

        Try adding the default line to the top of the WP htaccess files for both the bookmarks and jims.

        If that doesn't work, I'm afraid I'm out of ideas
        Signature

        The 2nd Amendment, 1789 - The Original Homeland Security.

        Gun control means never having to say, "I missed you."

        {{ DiscussionBoard.errors[7281473].message }}
        • Profile picture of the author ksmusselman
          Originally Posted by SteveJohnson View Post

          And the htaccess file for both has only the one line for the ErrorDoc in it? That shouldn't be causing an error.

          Try adding the default line to the top of the WP htaccess files for both the bookmarks and jims.

          If that doesn't work, I'm afraid I'm out of ideas
          Yup - just that one line - a direct copy/paste to the top line only starting from a completely empty file.

          Yeah, this is a real bitch. I've been with GD for almost TEN YEARS with a variety of domains and sites. This is the first time I have ever run into something that either they couldn't help with or I couldn't find an answer to on the web.

          I "might" have one more option - changing out the primary domain to my bookmarks store. Then ksmusselman will be on a sub-directory with the other WP sites.

          That just might work. I'm going to call GD back and see if that's possible. If all of the other WP sites are working without a problem, then I'll just move that domain down a rung and switch places with another html site.

          Will post back...


          THANK YOU EVERYONE!!!
          Signature
          Do You Vape? Submit a Guest Post! SmokersLogicEcigs.com
          Info Blog about Ecigs & Personal Vaporizers
          {{ DiscussionBoard.errors[7281505].message }}
          • Profile picture of the author Mkj
            I am not sure this will work but this code added to the main domain wordpress htaccess file should restrict the htaccess code actions to only the main domain:

            Code:
            RewriteCond %{HTTP_HOST} ^(www.)?domain here.com [NC]
            Update
            This forum is removing back slashes! Place backslashes before the full stops. This part of the code should be:

            Code:
            (wwwbackslash here.)?domainbackslash here.com
            Code:
            # BEGIN WordPress
            <IfModule mod_rewrite.c>
            RewriteEngine On
            RewriteBase /
            RewriteCond %{HTTP_HOST} ^(www.)?domain here.com [NC]
            RewriteRule ^index.php$ - [L]
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteCond %{REQUEST_FILENAME} !-d
            RewriteRule . /index.php [L]
            ErrorDocument 404 /page-not-found.html
            </IfModule>
            
            # END WordPress
            If the above works then your htaccess redirects that you place in the non wordpress installations should then also work. Worth a shot. Make sure you put your domain details in the line above correctly.
            {{ DiscussionBoard.errors[7281541].message }}
            • Profile picture of the author ksmusselman
              Originally Posted by Mkj View Post

              I am not sure this will work but this code added to the main domain wordpress htaccess file should restrict the htaccess code actions to only the main domain:

              Code:
              RewriteCond %{HTTP_HOST} ^(www.)?domain here.com [NC]
              Update
              This forum is removing back slashes! Place backslashes before the full stops. This part of the code should be:

              Code:
              (wwwbackslash here.)?domainbackslash here.com
              Code:
              # BEGIN WordPress
              <IfModule mod_rewrite.c>
              RewriteEngine On
              RewriteBase /
              RewriteCond %{HTTP_HOST} ^(www.)?domain here.com [NC]
              RewriteRule ^index.php$ - [L]
              RewriteCond %{REQUEST_FILENAME} !-f
              RewriteCond %{REQUEST_FILENAME} !-d
              RewriteRule . /index.php [L]
              ErrorDocument 404 /page-not-found.html
              </IfModule>
              
              # END WordPress
              If the above works then your htaccess redirects that you place in the non wordpress installations should then also work. Worth a shot. Make sure you put your domain details in the line above correctly.
              SENDING YOU VIRTUAL KISSES!!!!! IT WORKED!!!! :p

              THANK YOU BOTH Steve and MK!!

              I love this forum!!!
              Signature
              Do You Vape? Submit a Guest Post! SmokersLogicEcigs.com
              Info Blog about Ecigs & Personal Vaporizers
              {{ DiscussionBoard.errors[7281649].message }}

Trending Topics