undefined
Skip to content
Moz logo Menu open Menu close
  • Products
    • Moz Pro
    • Moz Pro Home
    • Moz Local
    • Moz Local Home
    • STAT
    • Moz API
    • Moz API Home
    • Compare SEO Products
    • Moz Data
  • Free SEO Tools
    • Domain Analysis
    • Keyword Explorer
    • Link Explorer
    • Competitive Research
    • MozBar
    • More Free SEO Tools
  • Learn SEO
    • Beginner's Guide to SEO
    • SEO Learning Center
    • Moz Academy
    • SEO Q&A
    • Webinars, Whitepapers, & Guides
  • Blog
  • Why Moz
    • Agency Solutions
    • Enterprise Solutions
    • Small Business Solutions
    • Case Studies
    • The Moz Story
    • New Releases
  • Log in
  • Log out
  • Products
    • Moz Pro

      Your all-in-one suite of SEO essentials.

    • Moz Local

      Raise your local SEO visibility with complete local SEO management.

    • STAT

      SERP tracking and analytics for enterprise SEO experts.

    • Moz API

      Power your SEO with our index of over 44 trillion links.

    • Compare SEO Products

      See which Moz SEO solution best meets your business needs.

    • Moz Data

      Power your SEO strategy & AI models with custom data solutions.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Free SEO Tools
    • Domain Analysis

      Get top competitive SEO metrics like DA, top pages and more.

    • Keyword Explorer

      Find traffic-driving keywords with our 1.25 billion+ keyword index.

    • Link Explorer

      Explore over 40 trillion links for powerful backlink data.

    • Competitive Research

      Uncover valuable insights on your organic search competitors.

    • MozBar

      See top SEO metrics for free as you browse the web.

    • More Free SEO Tools

      Explore all the free SEO tools Moz has to offer.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Learn SEO
    • Beginner's Guide to SEO

      The #1 most popular introduction to SEO, trusted by millions.

    • SEO Learning Center

      Broaden your knowledge with SEO resources for all skill levels.

    • On-Demand Webinars

      Learn modern SEO best practices from industry experts.

    • How-To Guides

      Step-by-step guides to search success from the authority on SEO.

    • Moz Academy

      Upskill and get certified with on-demand courses & certifications.

    • SEO Q&A

      Insights & discussions from an SEO community of 500,000+.

    Unlock flexible pricing & new endpoints
    Moz API

    Unlock flexible pricing & new endpoints

    Find your plan
  • Blog
  • Why Moz
    • Small Business Solutions

      Uncover insights to make smarter marketing decisions in less time.

    • Agency Solutions

      Earn & keep valuable clients with unparalleled data & insights.

    • Enterprise Solutions

      Gain a competitive edge in the ever-changing world of search.

    • The Moz Story

      Moz was the first & remains the most trusted SEO company.

    • Case Studies

      Explore how Moz drives ROI with a proven track record of success.

    • New Releases

      Get the scoop on the latest and greatest from Moz.

    Surface actionable competitive intel
    New Feature

    Surface actionable competitive intel

    Learn More
  • Log in
    • Moz Pro
    • Moz Local
    • Moz Local Dashboard
    • Moz API
    • Moz API Dashboard
    • Moz Academy
  • Avatar
    • Moz Home
    • Notifications
    • Account & Billing
    • Manage Users
    • Community Profile
    • My Q&A
    • My Videos
    • Log Out

The Moz Q&A Forum

  • Forum
  • Questions
  • Users
  • Ask the Community

Welcome to the Q&A Forum

Browse the forum for helpful insights and fresh discussions about all things SEO.

  1. Home
  2. SEO Tactics
  3. On-Page Optimization
  4. Wordpress & trailing slash on domain name

Moz Q&A is closed.

After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.

Wordpress & trailing slash on domain name

On-Page Optimization
3
8
2.0k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as question
Log in to reply
This topic has been deleted. Only users with question management privileges can see it.
  • Jon-C
    Jon-C last edited by Feb 8, 2013, 11:30 AM

    Hi recently changed my site so it is based on Wordpress, got my preferred domain set in Google webmaster as

    www.domian.co.uk

    but since moving to wordpress my domain is now having a slash put on the end of it like

    www.domain.co.uk/

    Most of the links going to my homepage do not have the slash on the end so am I right in thinking I should get rid of the slash from my site so I have one consistent url?

    If so any ideas how to banish the slash? Cannot seem to do it through the Wordpress general settings (despite preferred domain being set as www.domain.co.uk !)

    Thanks

    T

    1 Reply Last reply Reply Quote 0
    • Jon-C
      Jon-C @Jon-C last edited by Feb 8, 2013, 6:30 PM Feb 8, 2013, 6:30 PM

      Takeshi, that was great thank you 🙂

      1 Reply Last reply Reply Quote 0
      • TakeshiYoung
        TakeshiYoung @Jon-C last edited by Feb 8, 2013, 6:31 PM Feb 8, 2013, 5:36 PM

        Try this:

        <code># BEGIN WordPress  <IfModule mod_rewrite.c>  RewriteEngine  On  RewriteBase  /  RewriteRule  ^index\.php$ -  [L]  RewriteRule  (.+)/$ $1 [R=301,L]  RewriteCond  %{REQUEST_FILENAME}  !-f RewriteCond  %{REQUEST_FILENAME}  !-d RewriteRule  .  /index.php [L]  IfModule></code>
        
        1 Reply Last reply Reply Quote 1
        • Jon-C
          Jon-C @Jon-C last edited by Feb 8, 2013, 4:24 PM Feb 8, 2013, 4:24 PM

          Think it is a HTAccess issue, just opened it up and I have the following, do I just strip out the trailing slash on

          RewriteBase /newsite/ or do I have to strip out a few more?

          Don't like messing with my hataccess so any help to point me in the right direction would be great!

          # BEGIN WordPress
           <ifmodule mod_rewrite.c="">RewriteEngine On
          RewriteBase /newsite/
          RewriteRule ^index\.php$ - [L]
          RewriteCond %{REQUEST_FILENAME} !-f
          RewriteCond %{REQUEST_FILENAME} !-d
          RewriteRule . /newsite/index.php [L]</ifmodule> 
          
          # END WordPress
          
          
          1 Reply Last reply Reply Quote 0
          • Jon-C
            Jon-C @Jon-C last edited by Feb 8, 2013, 2:30 PM Feb 8, 2013, 2:30 PM

            Good point!

            Just checked and www.domain.co.uk redirects to www.domain.co.uk/

            This a htaccess issue perhaps?

            1 Reply Last reply Reply Quote 0
            • Martin_Harris
              Martin_Harris @Jon-C last edited by Feb 8, 2013, 12:45 PM Feb 8, 2013, 12:45 PM

              Does www.domain.co.uk redirect to www.domain.co.uk/ or are they treated as separate pages?

              1 Reply Last reply Reply Quote 0
              • Jon-C
                Jon-C @Martin_Harris last edited by Feb 8, 2013, 12:39 PM Feb 8, 2013, 12:39 PM

                Self hosted!

                I have set it as www.domain.co.uk in the settings but for some reason it is still showing with the slash when I view the site

                Martin_Harris Jon-C TakeshiYoung 5 Replies Last reply Feb 8, 2013, 6:30 PM Reply Quote 0
                • Martin_Harris
                  Martin_Harris last edited by Feb 8, 2013, 12:09 PM Feb 8, 2013, 12:09 PM

                  Are you on self hosted Wordpress or wordpress.com? Usually on self hosted you can edit the URL under general options.

                  Jon-C 1 Reply Last reply Feb 8, 2013, 12:39 PM Reply Quote 0
                  • 1 / 1
                  1 out of 8
                  • First post
                    1/8
                    Last post

                  Got a burning SEO question?

                  Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.


                  Start my free trial


                  Browse Questions

                  Explore more categories

                  • Moz Tools

                    Chat with the community about the Moz tools.

                  • SEO Tactics

                    Discuss the SEO process with fellow marketers

                  • Community

                    Discuss industry events, jobs, and news!

                  • Digital Marketing

                    Chat about tactics outside of SEO

                  • Research & Trends

                    Dive into research and trends in the search industry.

                  • Support

                    Connect on product support and feature requests.

                  • See all categories

                  Related Questions

                  • velomate

                    Unsolved I have lost SEO Ranking while removing www from domain

                    seo search visibility audit

                    I have lost search SEO ranking for 4-6 core keywords while removing www from domain switch.
                    Referring domain: https://cashforscrapcarsydney.com.au/ Earlier the domain was in the format: https://www.cashforscrapcarsydney.com.au/ But when I checked the search result, search engines had not yet crawled to the new format. Let me know if the server change or any algorithm hit might cause it. Also please share the feedback on - does removing www from the domain losses keyword ranking. Helpful replies are needed.

                    On-Page Optimization | Jan 20, 2024, 1:18 PM | velomate
                    0
                  • slgray

                    Do You Add City Name & Key Word For Every Page?

                    Hello, I'm new to SEO but feel I have a decent grasp on it. However, I had a question pertaining to key words and using my city name in it. For instance, if I am using the key word "herniated disc treatment" do I need to put in my city name behind it or does google recognize that I am already in my city area because of my geo tagging and having it listed on the footer of my site? Any help would be greatly appreciated. Thanks! -Scott

                    On-Page Optimization | Dec 28, 2018, 6:39 PM | slgray
                    0
                  • 21centuryweb

                    Duplicate 'meta title' issue (AMP & NON-AMP Pages)

                    how to fix duplicate meta title issue in amp and non-amp pages? example.com
                    example.com/amp We have set the 'meta title' in desktop version & we don't want to change the title for AMP page as we have more than 10K pages on the website. ----As per SEMRUSH Tool---- ABOUT THIS ISSUE It is a bad idea to duplicate your title tag content in your first-level header. If your page’s <title>and <h1> tags match, the latter may appear over-optimized to search engines. Also, using the same content in titles and headers means a lost opportunity to incorporate other relevant keywords for your page.</p> <p><strong>HOW TO FIX IT</strong></p> <p>Try to create different content for your <title> and <h1> tags.<br /><br />this is what they are recommending, for the above issue we have asked our team to create unique meta and post title for desktop version but what about AMP page?<br /><br />Please help!</p></title>

                    On-Page Optimization | Sep 24, 2018, 7:24 AM | 21centuryweb
                    0
                  • gaben

                    How does Google handle read more tags in Wordpress

                    Hi Everyone I am wondering how Google handles the read more tag in Wordpress. I pasted the link to a blog post on Google and found nothing (domain.com/post#readmore). Then I paste the version without #readmore (domain.com/post) and found that Google indexed the page but with the option to click "read more" to read it. The full blog post is not in their index, just the version asking you to read more. Is this because Google hasn't gotten to it or is Google ignoring it. I am not sure but ideally I rather have the full blog post indexed, not the read more version. I am curious to whether this will cause duplicate content issues. What are your experience with this and is it advisable to use an alternate method for read more. Maybe with a Wordpress plugin. Thanks in advance.

                    On-Page Optimization | Oct 17, 2016, 8:28 PM | gaben
                    0
                  • JustinBSLW

                    Product content length & links within product description

                    Hello, I have questions regarding content length and links within descriptions.  With our ecommerce site, we have thousands of products, each with a unique description. In the product description, I have links to the parent category and grandparent category (if it has one) in the main product text which is generally about 175 words. Then I have a last paragraph that's about 75 words that includes links to our main homepage and our main product catalogue page. Is the content length long enough? I used to use text that was 500 words, and shortening it I still rank when launching new products, so I don't think an increase in text length will have any additional benefit. I do see conflicting information when I do searches, with some people recommending a minimum of 300 words and some saying to try and go a 1000 for category pages. In regards to the links, I noticed a competitor has stopped following this format, so I'm unsure if I should keep going too. Is it too many links to have each of the products link back to the main catalogue and homepage? Is it good to have links with anchor text to the categories a product is in? There are breadcrumbs on the page with these links already. There are already have heaps of links on our pages (footer, and a right sidebar with image links to relevant categories), so my pages do get flagged for too many links. Thanks!

                    On-Page Optimization | Mar 15, 2016, 1:26 AM | JustinBSLW
                    0
                  • shannmg1

                    Is there any benefit to removing brand name from the title tag?

                    I just signed up for Moz recently, and have noticed that in my crawl errors, I have hundreds of issues with my title tag being too long. My business is selling prints for landscape/travel/nature photography, and I've built these pages dynamically to where the title tag for pages selling individual photos has the title of the photo for sale followed by a hyphen and then the brand name. The same goes for gallery pages "Gallery Name | Brand Name". Would it be worth it to shorten the title tags by removing the brand name from these pages? Or will that actually harm more than help? Thanks in advance!

                    On-Page Optimization | Apr 10, 2015, 8:44 AM | shannmg1
                    0
                  • cookie777

                    Bold & Italics Best Practice?

                    Hi All, Does anyone know the official best practice use of bold and italic fonts? If I have a long page of text- 800 words + I usually bold a few sentences to allow the user to be able to read only the bold on the page, and still make sense of the article. By reading all the bold it will kind of make sense and the user gets the point of the article. This wasn't really done for SEO purposes, but so the reader gets to the bottom of the page in a reasonable amount of time, and gets all the key points and facts of the article. I was advised not to do this and to just bold/italic the keyword/phrases the article was written to rank for. I would like to know anyone else's opinion/strategy on using bold/italics effectively and within best practices. What's the official word? Thank you for your help. Ian

                    On-Page Optimization | Sep 2, 2015, 4:18 PM | cookie777
                    0
                  • EssEEmily

                    Image Optimization - File Name Important?

                    I am currently working on a site with 100+ recipes that all have image file names that are relevant, but not optimized for keyword purposes. I'm wondering - from an SEO perspective - would it be worth my time to go back through all of the images and rename them with keywords in mind? On my own site I have always done this as a "best practice" but I'm curious - does it make a difference to search engines? Does anyone have any recent research/experiences that they would like to share? Thanks!

                    On-Page Optimization | Jun 28, 2011, 7:30 AM | EssEEmily
                    0

                  Get started with Moz Pro!

                  Unlock the power of advanced SEO tools and data-driven insights.

                  Start my free trial
                  Products
                  • Moz Pro
                  • Moz Local
                  • Moz API
                  • Moz Data
                  • STAT
                  • Product Updates
                  Moz Solutions
                  • SMB Solutions
                  • Agency Solutions
                  • Enterprise Solutions
                  Free SEO Tools
                  • Domain Authority Checker
                  • Link Explorer
                  • Keyword Explorer
                  • Competitive Research
                  • Brand Authority Checker
                  • Local Citation Checker
                  • MozBar Extension
                  • MozCast
                  Resources
                  • Blog
                  • SEO Learning Center
                  • Help Hub
                  • Beginner's Guide to SEO
                  • How-to Guides
                  • Moz Academy
                  • API Docs
                  About Moz
                  • About
                  • Team
                  • Careers
                  • Contact
                  Why Moz
                  • Case Studies
                  • Testimonials
                  Get Involved
                  • Become an Affiliate
                  • MozCon
                  • Webinars
                  • Practical Marketer Series
                  • MozPod
                  Connect with us

                  Contact the Help team

                  Join our newsletter
                  Moz logo
                  © 2021 - 2025 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                  • Accessibility
                  • Terms of Use
                  • Privacy

                  Looks like your connection to Moz was lost, please wait while we try to reconnect.