SEO changes in wordpress after permalink changes - php

I have installed WordPress in a sub-directory called blog in my root folder. Also, I have served the website from the root following the method given in this codex. My question is, if in future I am planning to create my own website at root and giving a link for blog to the WordPress site in the directory after that. So, then my permalink are going to be changed. If this gonna affect my SEO anyhow. Can anyone explain ?

Moving any web page ultimately requires a 301 redirect if you wish for Google to pass on any accrued SEO value. If not, the pages will be seen as new and may be seen as duplicate content.
Redirection is a great Wordpress plugin for adding 301 redirects quickly and easily. You just provide an incoming URL and where you would like that URL to be forwarded. The Plugin will do the leg work. It also tracks any 404 errors within the site if there are any errors.
High Level overview of Features
404 error monitoring - captures a log of 404 errors and allows you to easily map these to 301 redirects
Custom 'pass-through' redirections allowing you to pass a URL through to another page, file, or website.
Full logs for all redirected URLs
All URLs can be redirected, not just ones that don't exist
Redirection methods - redirect based upon login status, redirect to random pages, redirect based upon the referrer!
References
Redirection Main Website
Redirection Plugin on GitHub
Plugin Download on the Wordpress Plugins Directory

Related

How to 301 redirect all .asp pages to .php pages on IIS with web.config

as a php programmer, I usually redirect pages with .htaccess, but having inherited a project formerly made with asp, I need to redirect pages to same-named pages in php. For pages that do not exist in php, index.php should be the redirected page.
Would you please help me with some suggestions and resources? I can only find single page to single page redirect.
Thank you very much
First you have to configure the .Net handlers to process your Classic ASP requests
You do that with runAllManagedModulesForAllRequests="true" read more here and here
Next, you can use the built in URL rewrite module to do a wild card replace or a one-to-one map via web.config
As a backup, you can use the Global.asax's Application_BeginRequest event to parse out the requested URL and do a permanent redirect to PHP
Hope this helps

How to use Preview on Wordpress with Different Site Address and Wordpress Address

I am using Laravel and Wordpress together so I can have Laravel front-end and Wordpress back-end.
I am running into one issue. I have Wordpress is a sub-directory in the public folder called /wordpress. I have changed the Wordpress URL to example.com/wordpress, but want to keep the Site URL as example.com. This makes it so the preview link says 'Sorry, you are not allowed to preview drafts.'
How can I stop this from happening even though my links need to be different? I want to handle previews with the front-end but I can't even get that far because wordpress thinks I don't have permisison!
Thanks!

Installing wordpress in a different directory than root because another CMS is installed there

I have a weird situation with a client:
The root directory has a custom built CMS serving the site.
They want to rebuild the site in stages as it is very big.
So they want the new site in Wordpress and for the first stage just to build specific pages in Wordpress.
So obviously I would install WP in a sub directory or a different directory than root.
BUT, they want the pages served by WP to not indicate a different URL path so if we create a page called page1 the URL needs to be:
http://domainname.com/page1 not
http://domainname.com/wp/page1
Obviously if a browser navigates to:
http://domainname.com/page1
the CMS installed in root will try to serve the page and return a 404.
So my thinking is it must be possible to add a bunch of rules in the root folder htaccess (or with PHP) that check a list if the incoming request is for a URL we indicated in the list is meant to be served from WP, then to pull the files from the WP sub directory (bypassing the CMS installed in root) and rewrite the URL to root.
So if I go with my browser to:
http://domainname.com/page1
I will get the WP page
and if I go with the browser to:
http://domainname.com/wp/page1
it will server that page but with a 301 redirect to:
http://domainname.com/page1
Makes sense? Anyone know if this is possible?
I have tried but my htaccess/apache skills are not high enough to solve this one.
Thanks
You are in a very complicated position, in one way that could be very easy if your client doesn't bother with the subfolder which is pretty reasonable and cheaper because you don't have to spend time trying figure out how to get a clean URL, instead of that you can have a semantic URL like:
http://domainname.com/page/page1
So you have your Wordpress installation in the "page" folder and everything looks transparent for the user.
On the other hand, if you what create re-directions for each page you create in the new Wordpress you can do it in the Cpanel if you have access to the server.
The problem is you have to do after a new page publication.
In terms of SEO, you are getting a Soft bounce, which is not terrible but not terrific.
when you migrate all the content to Wordpress you have to delete all those redirections and will be more work to do in terms of SEO
The bottom line is if you have enough arguments for why you client could let you do it in the easy way that can help you a lot and save a lot of time.

How can I force woocommerce to use https in all urls?

I have purchased SSL certs and done all the necessary work to get the cert files onto my server and into my apache config files for my virtualhost.
In WP in the backend I have made sure my urls all use https: in them and forced the wp backend to always use https. This all works fine but issues start happening on some pages where it says that it cannot be found giving a 404 error and specifically on the woocommerce /cart and /checkout pages which is really bizarre.
I have even stripped out the settings to force https in site urls and gone straight into .htaccess and forced https throughout the whole site and even still I get errors on /cart and /checkout.
I have permalinks in WP set to custom and custom base url of /shop in woocommerce.
Has anyone else had this issue with woocommerce?
Thanks

Redirect Loop on /wp-admin when changing Wordpress URL

I'm trying to change the URL for my site, by going to settings in wp-admin and changing both site url and wp url.
All seems well after I save changes, I'm able to navigate around my blog using the new url. However when I try accessing wp-admin I'm getting a redirect loop. I can still access the wp-admin login page with the old url admin site. In order to access my admin page again I have to login to my DB and reset both urls.
I've also tried to add this code with my urls to my wp-config file
define('WP_HOME','http://www.sample.com');
define('WP_SITEURL','http://www.sample.com');
Other information about my setup:
Openshift is hosting wordpress with the quick start app and proper alias have been added to my app.
Cloudflare is managing my DNS
I wouldn't think either of these factors would be the issue because the site wouldn't work at all if one of these were misconfigured, but at this point I'm drawing a blank. Was thinking maybe it might have something to do with wordpress forcing SSL for wp-admin?
Found It!
I love how when you gather all the information to ask a proper question it seems to line you up for the solution.
I'm also using http://wwwizer.com/naked-domain-redirect to redirect naked domain request to www using an A record in my DNS. All I had to do was turn off cloudflare's protection to this DNS entry.

Categories