brometheus55
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Twenty Thirteen] Trouble with is_home commandI found my fix to the original problem using this:
<? if (is_home() && strpos($_SERVER['REQUEST_URI'], "/page/") === false) { ?>
Forum: Themes and Templates
In reply to: [Twenty Thirteen] Iphone margin/width issue with Twenty Thirteenthink I found my fix with this:
.page-id-xxx {min-width:960px} .home {min-width:425px}
Forum: Themes and Templates
In reply to: [Twenty Thirteen] Sidebar: Widget overlaps footerNo, it isn’t.
Forum: Hacks
In reply to: Help with WordPress Permalink 301 Redirect via .htaccessThat was just what I was looking for was someone to confirm the validity of the regexp. Good to know thanks!
Also, yes, I just didn’t include the whole code snippet. I did place it in between the <ifModule> tags after RewriteBase /.
Thanks for the additional information and for answering my question as (.+)$ means. Although not sure I fully understand. I know when I was testing if I added that to the end of the current line I’m using, it would seemingly work in the same way.
Thanks again for your help and quick responses, you have been extremely helpful!
Forum: Hacks
In reply to: Help with WordPress Permalink 301 Redirect via .htaccessbtw, I have no idea what (.+)$ means
Forum: Hacks
In reply to: Help with WordPress Permalink 301 Redirect via .htaccessThanks so much for the response. Doing some more searching on it I was able to find someone with a very similar problem here: https://wpquestions.com/question/showChrono/id/8468
The recommended fix was to add:
RewriteCond %{REQUEST_URI} !page RewriteRule ^[0-9]{4}\/+[0-9]{2}\/+(.+)$ /blog/$1 [L,R=301]
So i took that and basically replaced it with the previous code I was using. (ended up being different slightly than yours fyi, but yours works the same way interchangeably):
Original code:
RedirectMatch 301 ^/[0-9]{4}/[0-9]{2}/([a-z0-9\-/]{4,}) https://www.sweetfreestuff.com/$1
New code (seems to fix archives problem):
RewriteCond %{REQUEST_URI} !page RewriteRule ^[0-9]{4}\/+[0-9]{2}\/([a-z0-9\-/]{4,}) https://www.MYSITE.com/$1 [L,R=301]
Now my question for you, sir, is how does the code look and how does it look compared to the example fix from that page? Did I transpose everything correcty? Am I missing any characters or commands? Although it seems everything is working fine now, Just would like to doublecheck with someone who actually know what they are doing to see if you think this code holds water.
Thanks you very, very much for your help again.
Forum: Hacks
In reply to: Help with WordPress Permalink 301 Redirect via .htaccessI actually noticed a few other problems that still exist pertaining to the archives again. Here is what’s going on:
On a single day or a single month page, clicking the next page feature to get to page 2 breaks. Examples:
Page 2 on monthly archives: (ie: Jun >> June page 2)
https://www.mysite.com/2013/07/page/2/ redirects>>>>>>>>> https://www.mysite.com/page/2/Page 2 on a single day of archives:
https://www.mysite.com/2013/08/21/page/2/ redirects>>>>>>> https://www.mysite.com/21/page/2/ 404 not foundIs this something you can help me with? Let me know if you need to to outline the problem better. Thanks.
Forum: Fixing WordPress
In reply to: Help with WordPress Permalink 301 Redirect via .htaccesssolved thanks.
Forum: Hacks
In reply to: Help with WordPress Permalink 301 Redirect via .htaccessYes that works! Thank you so much for your help!
Forum: Themes and Templates
In reply to: [Twenty Thirteen] Trouble with is_home commandIt would be in the index.php between
<div id="primary" class="content-area"> <div id="content" class="site-content" role="main">
OR anywhere just outside on either top or bottom of this code.
I just tested it on a fresh wordpress install with all plugins deactivated and it still persists.
I feel as if my approach may be off as this isn’t working in twenty twelve either. It has worked in the past on many themes for me however and this fix is found all over the internet.
Zulfikar-
I found that snippet when I was searching. I tried it and it doesn’t work any differently.