Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
URL Corrector plugin
#15
(2016-08-08, 05:42:21)Bigin Wrote: What problem?
I have no particular problem with this and I think the search engine does not invent any abstrakt URL structure if these does not really exist.
It sounds paranoid to me if you think you should try to avoid URL structure like http://my-site.com/(parent)/child or index.php?id=page. The search engine will never be able to reach them or even know that these pages exist if these do not listed anywhere. In this context, I do not believe it makes much sense, I think you should only configure RewriteEngine to prevent some errors that user could do when copying URLs, such as a forgotten trailing-slash, or errors which have occurred during typing, such as a domain with or without the "www" prefix for example. It’s not difficult - I only use following entry to enforce a trailing-slash policy:

Inserted after the "RewriteBase /" line


Code:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*[^/])$ /$1/ [L,R=301]

And if you prefer naked domain names, so you can redirect to when a user requests with www:


Code:
RewriteCond %{HTTP_HOST} !^your-domain.com [NC]
RewriteRule ^/?(.*)$ http://your-domain.com/$1 [L,R=301]


I have seen that all these url:

http://site.com/index.php?id=page

http://site.com/page/
http://site.com/parent/page/
http://site.com/fakeparent/page/

in the source code have 
<link rel="canonical" href="correct page url" />


It is another way to prevent duplicate content used by CMS GetSimple

You're right that not need to do anything.

You just have only treat mirror site with www.

Thank you so much for everything
Reply


Messages In This Thread
URL Corrector plugin - by f30d0r - 2016-07-08, 06:25:59
RE: URL Corrector plugin - by steam - 2016-07-14, 17:08:14
RE: URL Corrector plugin - by f30d0r - 2016-07-14, 21:21:53
RE: URL Corrector plugin - by steam - 2016-07-15, 20:24:23
RE: URL Corrector plugin - by steam - 2016-07-19, 16:14:07
RE: URL Corrector plugin - by f30d0r - 2016-07-21, 01:51:03
RE: URL Corrector plugin - by f30d0r - 2016-07-25, 02:07:06
RE: URL Corrector plugin - by steam - 2016-07-25, 18:35:17
RE: URL Corrector plugin - by steam - 2016-08-08, 01:08:00
RE: URL Corrector plugin - by Bigin - 2016-08-08, 01:19:17
RE: URL Corrector plugin - by steam - 2016-08-08, 03:14:21
RE: URL Corrector plugin - by f30d0r - 2016-08-08, 02:29:44
RE: URL Corrector plugin - by steam - 2016-08-08, 03:26:30
RE: URL Corrector plugin - by Bigin - 2016-08-08, 05:42:21
RE: URL Corrector plugin - by steam - 2016-08-08, 17:02:24
RE: URL Corrector plugin - by mganko - 2016-08-08, 19:17:35
RE: URL Corrector plugin - by steam - 2016-08-09, 01:03:54
RE: URL Corrector plugin - by MaryUser - 2017-11-23, 12:07:13
RE: URL Corrector plugin - by vestris - 2018-09-19, 18:02:08
RE: URL Corrector plugin - by MaryUser - 2018-09-19, 22:46:06
RE: URL Corrector plugin - by vestris - 2018-09-20, 14:50:28



Users browsing this thread: 1 Guest(s)