GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Webmaster Q & Fuckin' A (https://gfy.com/forumdisplay.php?f=27)
-   -   Unusual Wordpress Issue, Any Ideas? (https://gfy.com/showthread.php?t=1180871)

DumpManager 12-13-2015 04:48 PM

Unusual Wordpress Issue, Any Ideas?
 
Hey everyone,

I just ran into a bit of a weird situation and can't seem to find help on it. I've tried searching but couldn't find any info, so I was hoping you folks can help me out.

So I remade one of my sites with a nice new wordpress layout. I have it up and running in a sort of beta mode because I am still tweaking it here and there. I noticed after a while that I had the www still in my website address so in the general settings on wordpress I changed it and removed the www's from the URL. It now works fine without the www's as I wanted it to.. BUT, just by pure accident I typed in www before my site and found out there are two versions of it on the same address.

The new version of my site is just "http://thewebsitename" etc
the old version is "http://www.thewebsitename" etc

They seem to not be connected either because when I am signed into my new one and go to the old one I am not signed in anymore - like it's a totally different wordpress site.

Any ideas how to fix this? I would prefer that if someone enter the www's in the url for any page on my site it would redirect them to the same "non-www."page instead of to the old website which for whatever reason is still there. Like how with GFY if you enter "gfy.com" you come here, and if you enter "www.gfy.com" it changes to gfy.com and still comes here.

Thanks everyone,

- DumpManager

Miguel T 12-13-2015 09:11 PM

.htaccess:

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]


This will make whatever comes from Domain Name Registration and Web Hosting | Domain.com , go to: domain.com (without www)

Probably updating your permalinks will help... Just go to the page, and click Save.

Focus 12-13-2015 09:58 PM

Quote:

Originally Posted by Zuzana Miguel (Post 20667469)
.htaccess:

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]


This will make whatever comes from Domain Name Registration and Web Hosting | Domain.com , go to: domain.com (without www)

Probably updating your permalinks will help... Just go to the page, and click Save.

:thumbsup

DumpManager 12-14-2015 10:33 AM

Quote:

Originally Posted by Zuzana Miguel (Post 20667469)
.htaccess:

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]


This will make whatever comes from Domain Name Registration and Web Hosting | Domain.com , go to: domain.com (without www)

Probably updating your permalinks will help... Just go to the page, and click Save.

Thank you so much for the help. I'll give this a shot later on, really appreciate your assistance. Happy Christmas / holidays everyone.

- DumpManager

j3rkules 12-14-2015 10:47 AM

Quote:

Originally Posted by DumpManager (Post 20667939)
Thank you so much for the help. I'll give this a shot later on, really appreciate your assistance. Happy Christmas / holidays everyone.

- DumpManager

:thumbsup

CustomBusinessSoftware 12-15-2015 06:34 AM

hope its fixed if not we can look at it and help

kuskka 12-15-2015 12:36 PM

StackOverflow can be a good source for Wordpress issues, they have a board 100% dedicated for it.


All times are GMT -7. The time now is 05:22 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123