Wordpress & trailing slash on domain name
-
Hi recently changed my site so it is based on Wordpress, got my preferred domain set in Google webmaster as
but since moving to wordpress my domain is now having a slash put on the end of it like
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
-
Takeshi, that was great thank you
-
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>
-
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
-
Good point!
Just checked and www.domain.co.uk redirects to www.domain.co.uk/
This a htaccess issue perhaps?
-
Does www.domain.co.uk redirect to www.domain.co.uk/ or are they treated as separate pages?
-
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
-
Are you on self hosted Wordpress or wordpress.com? Usually on self hosted you can edit the URL under general options.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
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.
Related Questions
-
Ranking over someone else who has your branded domain name
Hello! I have a client who has been in business for a long time, but was very late to the game online. As a result, the branded domain for his business (for explanation purposes I'll call it "Houston Tan"*) was already taken when he decided he needed a website, however it was not being used. He approached the company that owned "houstontan.com" and they refused to sell it to him. Not only that, they turned around and opened a company and developed the website using his trademarked company name as one word instead of two, "HoustonTan." It was brought to court and the judge determined that since they created a new name by combining the two words, there was nothing that he could do. Still having to create a website for his company, he chose the domain "HoustonSunTan.com." Not sure who was advising him on that one. So now he has a domain name with only a partial match to his company name. As you would imagine, when you search Houston Tan, HoustonTan.com is number 1, 2 & 3, and HoustonSunTan.com is #4. My question is, do you think it is even possible for his company to overtake the top spot of Google? Or have you ever come across a situation like this and if so what worked for you? FYI: Even though it says Houston, the company is a global company in over 500 cities (with one 800 number unfortunately), so local SEO strategies wouldn't necessarily apply. *Names are made up to protect both parties 🙂
On-Page Optimization | | American.Made0 -
Domain sub-directory not performing
We've restructured our site over the past 6 months and I'm going to run you through the whole scenario as I would love any feedback you guys have. 6 months ago we had 2 websites http://boulders-climbing.com (climbing facility) and http://bouldersuk.com (shop). We made the decision to merge the websites and leverage the SEO on 1 site. Although boulders-climbing.com was the older and more established domain, the company wanted to use bouldersuk.com so a whole new website was designed and boulders-climbing.com was redirected to bouldersuk.com. The climbing facility website now sits at bouldersuk.com and the shop was moved to bouldersuk.com/climbing-shop with 301's for all shop pages. This has lead to a significant a increase in domain rank for bouldersuk.com and much better rankings for the climbing centre related terms. The desired effect has been achieved, well half of it anyway. The search rankings for bouldersuk.com/climbing-shop have never reached the previous heights and are still heading in the wrong direction, even though the overall domain ranking has increased by 50%. What can I do to get the SEO for /climbing-shop working again? We're adding fresh content to our latest news with links through to products and categories, all category pages have A grades. we are attempting to link build but it is much more difficult for e-commerce than for the facilities pages. Is the SEO of the main site hampering(masking?) the /climbing-shop? All feedback on the whole process would be much appreciated. Thanks!
On-Page Optimization | | benj450 -
Noindex tags in WordPress
I'm receiving 4 duplicate content warnings from Roger.They are all "www.mysite/tag/tag-name". I'm using WordPress and have Yoast WordPress SEO installed. Should I set the tags to "noindex" in the plugin settings?
On-Page Optimization | | brandzz0 -
Important keywords in product names
Hi! among other we sell motorcycle clothing, which you can buy as a set (both jacket and pants) or single piece. Currently we name the products with the labeling in the beginning, e.g: Motorcycle pants R2000, Motorcycle jacket R2000, Motorcycle kit R2000 Motorcycle pants R4000, Motorcycle jacket R4000, Motorcycle kit R4000 This is causing keyword stuffing and cannibalization in the category pages as all the product names include important keywords. On the other hand it would be beneficial to keep the labeling in the name for search queries for the exact product. What be your recommendations? I tend to take the labeling away.
On-Page Optimization | | RomiSverige0 -
Duplicating content on multiple domains
Hey guys, I've started working with a new client recently called Resource Investing News. I'm more a Social Media person, though I do have SEO experience. RIN has about 40 URLs all of which have original news content published on them. One SEO-related issue that I can see here though is that the primary domain re-publishes all of the original content that the other URLs do. In other words: resourceinvestingnews.com will have an article on it that is also published on goldinvestingnews.com with the same date stamp and a link out to the original article. E.g. http://resourceinvestingnews.com/42539-molybdenum-goes-far-beyond-steelmaking.html http://molyinvestingnews.com/5301-molybdenum-steelmaking-vehicle-demand-electronics-lubricant.html Does anyone have an idea if this is something that should be reviewed and/or whether the content is being negatively affected in search? Many thanks!
On-Page Optimization | | blahblahblah20150 -
5 websites, 1 root domain name: good or bad?
Hi guys, I'm new here, so this might be a basic question to the experts here! So here is my situation: I have 1 "umbrella" website (root domain name) that contains 4 different websites, for a total of 5 different websites. They are related, but we needed to brand each website differently to fit each strategy. Q: I have 23 domain names.. this means I have 23 sub-domain names?
On-Page Optimization | | Jacky_C
Q: Is this practice good or bad for my SEO?
Q: should I analyze each domain name/SD? Here are my 5 websites
RD: furisgreen.com
SD1: furcouncil.com
SD2: furfashions.com
SD3: naffem.com
SD4: beautifullycanadian.com Thank you for your help!!0 -
Transition between a blog to e-commerce webshop, will my domain "lose" authority
Hi Seomoz'ers, Currently I am analyzing the best possible strategy which situation is as follow: I am having a blog with a great EMD about a specific product we are selling. The blog is currently ranking in position 1 for different keyword phrases. However I would like to make a switch from the current Wordpress blog to Magento webshop. Simply because the product should be sold through a professional webshop with many related products. Only the homepage of mydomainname.com is optimized. I am affraid I will lose my #1 ranking when I put my webstore online on this domainname. Most likely I will lose my PA and keep my DA. Which actions should I take in order to keep the ranking in Google position 1 with the new webstore? My best possible option I guess: 1. Replace the Wordpress blog with the Magento webstore and optimize the homepage with on-page seo of the webstore for the targeted keywords. Will this work? As the backlinks I've built are pointing all to the domainname.com (homepage). Thanks in advance. Any more suggestions are welcome 🙂
On-Page Optimization | | Falcopa0 -
Advantages of Wordpress Pages versus Posts
I have a number of SEO focused articles that I would like to post to our site to help with content and rankings. I am wondering the advantages of posting the content as a page versus a post within Wordpress. Or even vice versa.
On-Page Optimization | | findachristianjob
Any thoughts on whether I should do as a page or post? Thanks.0