mcdrewblue
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: One wp to a new wp same server migrationYES!
Excellent work and thank you!
The php script above works a charm and thank you!
I know this was a ‘different’ way about resolving the migration and other people have their ways, but to solve this structure the code you gave is perfect! It stops me losing all those good SEO results!
Forum: Fixing WordPress
In reply to: One wp to a new wp same server migrationOk and thanks for the reply.
My link structure is different from the public site to the home site.
I see you say it’ll be harder if they are different but no indication on what I would now need to do…any ideas?
I have changed the index.php page to have a php script which redirects everything going to public to home, but this way I am losing the google results which offer up the old contact page etc…please somebody must have the answer?
I thought about a php script that tested which page you came in on then redirected you via a case statement to the new page location????
Forum: Fixing WordPress
In reply to: One wp to a new wp same server migrationI can’t understand why this issue hasn’t come up before and that people on here don’t just say…oh that’s easy just do this…So my plan now is to simply change each index.php in the old site (public folder) to redirect to each relevant page. I think this is going to be easier. Any opinions?
Forum: Fixing WordPress
In reply to: One wp to a new wp same server migrationThanks for the reply, but no this doesn’t work.
using your 4 lines I get the following results:
Going to rhinoaluminium.co.uk just brings up a file view (index page of text with links to other folders including public and home) but does not take you to /home.
When you go to domain /public it doesn’t redirect to /home.
I have all of those redirect in an attempt to send visitors to the new site page when they find google results for historic pages.
The page structure and names do NOT match between the old and new site so wildcards will not work.
Amny other ideas?
Thanks for your help!
Forum: Fixing WordPress
In reply to: One wp to a new wp same server migrationok thanks for looking, here’s my root .htaccess file:
#suPHP_ConfigPath /home/rhino001/public_html
RewriteEngine on
RewriteCond %{HTTP_HOST} ^rhinoaluminium\.co\.uk$ [OR]
RewriteCond %{HTTP_HOST} ^www\.rhinoaluminium\.co\.uk$
RewriteRule ^/?$ “http\:\/\/rhinoaluminium\.co\.uk\/home” [R=301,L]RewriteCond %{HTTP_HOST} ^rhinoaluminium\.co\.uk$ [OR]
RewriteCond %{HTTP_HOST} ^www\.rhinoaluminium\.co\.uk$
RewriteRule ^sms\/?$ “http\:\/\/rhinoaluminium\.co\.uk\/sms\/index\.php” [R=301,L]RewriteCond %{HTTP_HOST} ^rhinoaluminium\.co\.uk$ [OR]
RewriteCond %{HTTP_HOST} ^www\.rhinoaluminium\.co\.uk$
RewriteRule ^public\/about\-rhino\-aluminium$ “http\:\/\/rhinoaluminium\.co\.uk\/home” [R=301,L]RewriteCond %{HTTP_HOST} ^rhinoaluminium\.co\.uk$ [OR]
RewriteCond %{HTTP_HOST} ^www\.rhinoaluminium\.co\.uk$
RewriteRule ^public\/our\-mission\-vision\-and\-values$ “http\:\/\/rhinoaluminium\.co\.uk\/home\/mission\-vision\-and\-values\/” [R=301,L]RewriteCond %{HTTP_HOST} ^rhinoaluminium\.co\.uk$ [OR]
RewriteCond %{HTTP_HOST} ^www\.rhinoaluminium\.co\.uk$
RewriteRule ^public\/find\-an\-approved\-installer$ “http\:\/\/rhinoaluminium\.co\.uk\/home\/find\-an\-approved\-installer\/” [R=301,L]RewriteCond %{HTTP_HOST} ^rhinoaluminium\.co\.uk$ [OR]
RewriteCond %{HTTP_HOST} ^www\.rhinoaluminium\.co\.uk$
RewriteRule ^public\/testimonials\/$ “http\:\/\/rhinoaluminium\.co\.uk\/home\/testimonials\/” [R=301,L]RewriteCond %{HTTP_HOST} ^rhinoaluminium\.co\.uk$ [OR]
RewriteCond %{HTTP_HOST} ^www\.rhinoaluminium\.co\.uk$
RewriteRule ^public\/contact\/map\/$ “http\:\/\/rhinoaluminium\.co\.uk\/home\/contact\-us\/” [R=301,L]RewriteCond %{HTTP_HOST} ^rhinoaluminium\.co\.uk$ [OR]
RewriteCond %{HTTP_HOST} ^www\.rhinoaluminium\.co\.uk$
RewriteRule ^public\/contact\/$ “http\:\/\/rhinoaluminium\.co\.uk\/home\/contact\-us\/” [R=301,L]RewriteCond %{HTTP_HOST} ^rhinoaluminium\.co\.uk$ [OR]
RewriteCond %{HTTP_HOST} ^www\.rhinoaluminium\.co\.uk$
RewriteRule ^public\/rhino\-aluminium\-downloads$ “http\:\/\/rhinoaluminium\.co\.uk\/home\/downloads\/” [R=301,L]RewriteCond %{HTTP_HOST} ^rhinoaluminium\.co\.uk$ [OR]
RewriteCond %{HTTP_HOST} ^www\.rhinoaluminium\.co\.uk$
RewriteRule ^public\/terms\-conditions$ “http\:\/\/rhinoaluminium\.co\.uk\/home\/terms\-conditions\/” [R=301,L]RewriteCond %{HTTP_HOST} ^rhinoaluminium\.co\.uk$ [OR]
RewriteCond %{HTTP_HOST} ^www\.rhinoaluminium\.co\.uk$
RewriteRule ^public\/$ “http\:\/\/www\.rhinoaluminium\.co\.uk\/home” [R=301,L]Forum: Fixing WordPress
In reply to: One wp to a new wp same server migrationOk and thank you for the reply.
Is this the .htaccess file in the root of public_html or the .htaccess in the root of the public folder?
I do have a rediret rule in the root of my domain which states anything domain /public send to domain /home but if you go to https://rhinoaluminium.co.uk/public this rule does not work!?? It just goes to the old site.
Any ideas?