I need a small php code fix to stop dupe content problems on my website
- or -
Post a project like this3744
£10(approx. $13)
- Posted:
- Proposals: 2
- Remote
- #371640
- Awarded
Description
Experience Level: Entry
Estimated project duration: 1 day or less
General information for the website: We provide office space consultancy services
Description of requirements/features: On our website we offer office space. We have pages for each city. At the top of those pages, we put a bit of custom content to help SEO. For example:
http://www.angeloffices.com/index.php/city/Henbury/Bristol/
However, the same custom content appears at the top of each paginated page - example:
http://www.angeloffices.com/index.php/city/Henbury/Bristol/10
What I want is a small piece of php code which I will insert myself into the template which checks the URL and identifies that the page is a paginated page from the presence of a number on the end of the URL, and HIDES the custom content on that page - preferred option (you only need to write an if statement that displays/hides the content depending on the URL having that number on the end - I can implement it into the site myself).
The format of the URL for these pages is always http://www.angeloffices.com/index.php/city/LOCATION1/LOCATION2/NUMBER (with no final slash)
so eg. even London which has no second location as such, has this format:
http://www.angeloffices.com/index.php/city/London/London/40
Extra notes:
Description of requirements/features: On our website we offer office space. We have pages for each city. At the top of those pages, we put a bit of custom content to help SEO. For example:
http://www.angeloffices.com/index.php/city/Henbury/Bristol/
However, the same custom content appears at the top of each paginated page - example:
http://www.angeloffices.com/index.php/city/Henbury/Bristol/10
What I want is a small piece of php code which I will insert myself into the template which checks the URL and identifies that the page is a paginated page from the presence of a number on the end of the URL, and HIDES the custom content on that page - preferred option (you only need to write an if statement that displays/hides the content depending on the URL having that number on the end - I can implement it into the site myself).
The format of the URL for these pages is always http://www.angeloffices.com/index.php/city/LOCATION1/LOCATION2/NUMBER (with no final slash)
so eg. even London which has no second location as such, has this format:
http://www.angeloffices.com/index.php/city/London/London/40
Extra notes:
Jen W.
100% (41)Projects Completed
36
Freelancers worked with
28
Projects awarded
50%
Last project
12 Feb 2024
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies