everwill
Forum Replies Created
-
Forum: Networking WordPress
In reply to: Infinite redirect / Conditional .htaccessI assume you’re talking about .htaccess and not ,htaccess? ;^)
Forum: Networking WordPress
In reply to: Infinite redirect / Conditional .htaccessI actually already have a few .htaccess redirects that are working without problem in other directories already. I’ve had success in the past with simple non-conditional stuff. I have to shake through a few kinks to compensate for the compensation as it were, so I’ll come back to this when I have more info to share.
Forum: Networking WordPress
In reply to: Infinite redirect / Conditional .htaccessYes but why would , work and . not work? Do you know what is the difference.
BTW, I’m back onto thinking that this is and FMC-related error. And it’s a case study in why things like this will make you go crazy.
I have a plugin — when you tell a tale of WP villainy there’s always a plugin lurking in there somewhere — that automatically writes a redirect when it detects certain changes. It does this to help you from breaking links. I discovered this when I tried to put the pieces of my puzzle back together and now I think this is the reason I was having bizarre nonsensical errors.
So, without walking you through some of the details of my site, I’m going to try this again, but compensate for the plugin compensation and hopefully all will finally work.
Forum: Networking WordPress
In reply to: Infinite redirect / Conditional .htaccessWell, well, well …
Sorry for the multi-post but I’m also hoping that documenting my ineptitude will help the next stranger lost in the forest.
I thought I was all clear but I just learned that ,htaccess works fine on one domain but is forbidden on another. So I am to assume that , and . mean something different in the mysterious world of htaccess …
The plot thickens.
Forum: Networking WordPress
In reply to: Infinite redirect / Conditional .htaccessOkay … now let me ask you if I’ve discovered something truly strange or if this is just another FMC* error. I tinkered with the code (nominally) and then accidentally named the file ,htaccess (as in comma htaccess) and it worked like a champ. I renamed .htaccess and wham file not found. Changed it back to comma and all worked.
—————————————–
*FMC error = An old programmer buddy would from time to time find that his code didn’t work for no apparent reason. He went through the code line by line over and over and over. Of course, the problem wasn’t the logic of the program it was nothing more than some obscure syntax problem hidden in a blur of characters. When after hours of seraching he finally found the error he would continually under his breath, “F****ing moronic child … ” Thus the origins of the FMC error.Forum: Networking WordPress
In reply to: Infinite redirect / Conditional .htaccessOkay, there is definitely something freaky going on here and I think it’s Plesk related. I don’t have a logical reason, but my Spider-sense is tingling. Without further editorial, here’s the strange part:
I used the same piece of code above and I used it in a static folder with simple straight-forward files … and got the same error as above. File not found on this server.
Forum: Networking WordPress
In reply to: Infinite redirect / Conditional .htaccessI supposed I could just flesh out all these with the same content …
Google was a concern, but I also wanted to make it easier for the user to see and understand the structure …
Forum: Networking WordPress
In reply to: Infinite redirect / Conditional .htaccessRather I want one specific folder to in all of those domains to resolve to the main domain.
I mean to say: Rather I want one specific folder to in all of those domains to resolve to a specific folder on one of these domains.
Forum: Networking WordPress
In reply to: Infinite redirect / Conditional .htaccessI need multi-site because I have more than 100 different domains. The problem (as I stated in my OP) is that while each domain has certain very specific information to that domain, some information is general to all domains and I don’t want to duplicate the content in all of those domains. Rather I want one specific folder to in all of those domains to resolve to the main domain.
As a side note I wish I’d known before I configured that you can’t map more than one domain to the main domain. That sort of sucks.
Forum: Networking WordPress
In reply to: Infinite redirect / Conditional .htaccessAndrea,
Unless I’m misunderstanding something, I can’t seem to map more than one domain to my parent domain. I can map multiple domains to any other domain but not that one. I can forward a domain to my parent domain but I can’t alias.
That said, I just need that /idx/ folder to redirect because if I can get it to work, I’ll do that will 50+ other domains.
Master Half-Elf,
I tried the code a moment ago and it was the same error (not found). Here’s what I think is happening. The .htaccess is redirecting the request immediately. Normally a request to that directory would bounce off a data provider’s server and back to me, but in this case the file is not found because the file doesn’t exist as the redirect is happening before the executable. In other words, I think the code is doing exactly what you expect it to do, but that’s not the solution to this environment.
Because the file doesn’t exist and never existed on my server, I’m starting to believe that this method will never work to accomplish my goal. Hopefully these snippets of code will help the next guy looking for a redirect snippet in the forums.
Andrea,
Do you have a specific plugin you are recommending? I want to see if I have it installed already to make sure I’m not missing something.
I VERY much appreciate the help of both of you … even if I don’t have a solution and might have an unsolvable problem.
Forum: Networking WordPress
In reply to: Infinite redirect / Conditional .htaccessYou have described the goal accurately, but to be crystal clear the goal is to have anything that goes to https://condo-alexandria.com/idx/ANYTHING go to https://nesbittrealty/idx/THE SAME THING.
Both are handled by Multisite with condo-alexandria as the Master Domain.
I have a Plesk panel if that adds or subtracts from the confusion.
Forum: Networking WordPress
In reply to: Infinite redirect / Conditional .htaccessThe critical information that I withheld that I think might be pertinent is this:
Everything in the /idx/ folder bounces off someone else’s code and database and builds on my site. In other words, I have no code, DB or anything else at /idx/ and this is why I cannot easily modify that code. No doubt there is a redirect built into that pile of spaghetti that shoots it back to my box and that is probably conflicting with / trying to over-write what I’m trying to do.
Forum: Networking WordPress
In reply to: Infinite redirect / Conditional .htaccessActually it’s nesbittrealty.com but no matter, I can handle that kind of edit. ;^)
I think I’m much closer. I’m getting this error now:
<strong>Not Found</strong> The requested URL /idx/mls-fx7500640-7201_churchill_rd_mclean_va_22101 was not found on this server. <hr> <em>Apache/2.2.14 (Unix) Server at condo-alexandria.com Port XX</em>
(Where XX is my port number.)Here’s what’s curious though …
After it gave me the error, I tried this one instead:
# Turn on rewrites. RewriteEngine on RewriteBase / #I'll add the others later. Let's get one working. RewriteCond %{HTTP_HOST} ^(www\.)?nesbittrealty\.com RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^idx(.*)$ https://condo-alexandria.com/idx$1 [R=301,NC,L]
In other words I swapped the URLs to see what would happen. Browsed to https://condo-alexandria.com/idx/mls-fx7500562-8220_crestwood_heights_dr_704_mclean_va_22102 and at the same URL with the following error:
<strong>Not Found </strong> The requested URL /idx/mls-fx7500562-8220_crestwood_heights_dr_704_mclean_va_22102 was not found on this server. <hr> <em>Apache/2.2.14 (Unix) Server at condo-alexandria.com Port XX</em>
I don’t know what I’d do without the kindness of strangers, and I feel bad for imposing upon you as much as I have already. I’ll start paging through the resources you referenced.
Forum: Networking WordPress
In reply to: Infinite redirect / Conditional .htaccessSo here’s what I came up with:
# Turn on rewrites. RewriteEngine on RewriteBase / #I'll add the others later. Let's get one working. RewriteCond %{HTTP_HOST} ^(www\.)?(condo-alexandria|site2|site3)\.com RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^topic-x(.*)$ https://nesbitt-realty.com/idx/$1 [R=301,NC,L]
The problem is when I uploaded it I am sent to this location:
https://condo-alexandria.com/idx/mls-fx7500861-1610_6th_pl_mclean_va_22101
Where upon it tells me “the webpage cannot be found” as in browser / URL error rather than as in 404 error. Of course as soon as I rename .htaccess to fjdkal.htaccess, the page loads … but not at the target URL.
Forum: Networking WordPress
In reply to: Infinite redirect / Conditional .htaccessOops … I just realized I made a mess in the code above, but I don’t know how to edit my post. :^(
This is not a bump, just an apology! ;^)