fitbuffcom
Forum Replies Created
-
Well I do indeed have a page and a directory both named /blog/
You can see for yourself with the following links:
Here is a single page called blog: https://www.fitbuff.com/blog/
And here is a link to an old post when my blog was in the /blog/ directory (it redirects now, but I still can’t get JUST the single /blog/ page to redirect:
https://www.fitbuff.com/blog/2007/05/30/train-like-a-samurai-warrior/
Now, all I want to do is redirect the single page of https://www.fitbuff.com/blog/ to https://www.fitbuff.com
BUT, if I do that using an .htaccess redirect, it also interprets the /blog/ as the directory, thus when someone clicked on an old link such as the one above, it would strip out the /blog making it: https://www.fitbuff.com/2007/05/30/train-like-a-samurai-warrior/ which leads to a 404 because that link never existed.
See my problem? and Does anyone have any idea how to redirect JUST the page /blog/ without the .htaccess applying the redirect to the old directory of /blog/ as well?
You mean I should not right? I know that now, but I didn’t when I created the page, so I’m still looking for a way to redirect a page that’s structured like “…/page/” instead of just “…/page.html”
Technically there isn’t exactly a “problem”, because right now all the pages and links work, so the permalinks are fine.
But forgetting about the permalinks or directories or anything else, my main question is how do you redirect a single PAGE without redirecting the entire directory, when the name of that one PAGE is structured like, “…/blog/”
I know there has to be a way to do this in the .htaccess with just a simple tweak of a quote or a slash here or there, but I can’t find how to do it.
I know you said you’re no htaccess expert, but thanks for trying, and does anyone else know more about .htaccess that could help?
Do you have a directory called blog and a Page called blog?
Yes, I used to have it set up my WP was in /blog/ but now it’s in the root. My permalinks USED to look like this “…/blog/DATE/TITLE/”
Now I’ve moved my blog to the root directory and changed the permalinks so all the NEW posts look like this “…/TITLE/”
I also have a single PAGE at “…/blog/” where my OLD blog posts used to be.
I would like to redirect just that one PAGE of “…/blog/” to my new index page at “…/”
But if I set up a redirect for just “…/blog/” then it also interprets that redirect for all my OLD permalinks, thus changing them from “…/blog/DATE/TITLE” to “…/DATE/TITLE/” which gives 404 errors to anyone trying to access old posts.
So my problem is trying to redirect just the SINGLE PAGE of “…/blog/” without it interpreting that as the directory.
This would be easy if it was a normal page like “…/blog.php” but the way the page link is set up in WP, I can’t find a way to redirect JUST that page of “…/blog/” to the index without breaking all the old post links of “…/blog/DATE/TITLE/”
Please let me know if you know of any way to fix this, or if you need any more information.
I’ve searched high and low and still can’t find a solution to this problem. If anyone has any information on links that address this issue, please let me know.
Anybody get what I mean by redirecting just the page, without redirecting the entire directory?
Just an update for anyone else interested in this feature. The plugin didn’t work for me for whatever reason. Maybe it’s not compatible with the new version, or it may have conflicted with another plugin, etc.
But I followed Todd’s advice and pasted the code from https://pastebin.ca/121545 right at line 155 in the edit-form-advanced.php file (which is in your wp-admin folder), and it works perfectly!
Thanks again!
Anybody? I would really love to get this feature working. If you have any suggestions at all, please let me know.
Forum: Fixing WordPress
In reply to: Way to Post Exclusive Content to RSS Feed without Showing On Blog?Nobody know a way to do this? I think of read something somewhere about a way to do RSS exclusive advertisements, maybe there is a way to incorporate this…?
Basically, just anyway that I could get a message in front of the RSS Subscribers without it being posted on the main blog page.