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
-
Is my domain holding me back in the SERPS?
Even after a good year or so, my site intensivedrivingschoolmiltonkeynes.co.uk does not rank in the top 10 (google.co.uk) for "Intensive Driving School Milton Keynes", and is nowhere for "Driving School Milton Keynes". Do you think the domain name is being penalised, or do you think there are other factors that contribute to the poor performance.
On-Page Optimization | | Buffalo-Mobile1 -
Use of '&' in meta title
Hi, I know that use of '&' would be helpful to save space and also add more keyword variation to the title tag. But just want to make sure if it matters if I use '&' in most of my title tags? And also is it common to use more than & in one title? Would the following title be different in Google's perspective regardless of the title length? I am thinking they are all targeting the keywords 'fruit cake' and 'fruit bread', but the first one is the best. buy fruit cake & bread buy fruit cake & fruit bread buy fruit cake and fruit bread Thanks in advance.
On-Page Optimization | | russellbrown0 -
Events in Wordpress Creating Duplicate Content Canonical Issues
Hi, I have a site which uses Event Manager Pro within Wordpress to create Events (as custom post types on my blog. I use it to advertise cookery classes. In a given month I might run one type of class 4 times. The event page I have made for each class is the same and I duplicate it 4 times and just change the dates to promote it. The problem is with over 10 different classes, which are then duplicated up to 4 times each per month. I get loads of duplicate content errors. How can I fix this without redirecting people away from the correct page for the date they are interested in? Is it best just to use a no follow for ALL events and rely on the other parts of my site for SEO? Thanks, T23
On-Page Optimization | | tekton230 -
Recommended Wordpress themes for great SEO
Hi there, I'm trying to decide which theme to use. My main concern is if the theme has been built using a stable framework to ensure plugin compatibility for SEO. Also a general question, does the homepage need to have a certain amount of text content for SEO, or can other pages be SEO optimised with text / keyword? Some of the nicer themes seem to have a sparce text to image ratio on the homepage. I quite like this as an initial 'welcome' but worry this isn't great for SEO. Any suggested themes / advice will be welcome. Thanks
On-Page Optimization | | well-its-1-louder0 -
Using product prices in title tags & other ways to improve CTR
I'm about to launch a new website and was just wondering if anyone had tried this before; On product pages i thought it may be a good idea to include prices, with a message to save more when the customer buys more. Something along the lines of this; [Product name] at/from [Brand name] - Only [Price] [Buy # to save] Etc. Does anyone have any experience with using this in title tags (along with some variation of offering a saving when bulk buying) etc? Any comments would be hugely appreciated! Thanks! [EDIT] Should also just note that we are very competitive on pricing - Looked at more than 70 competitors and we're offering better quality products (than the ones from [supposedly top] competitors we've sampled) for lower prices.
On-Page Optimization | | tea0 -
FAQS For Seo & Long Tail Optimization
Would it be ok to create a small FAQ section on the particular page I am working on using long tail keywords, all which have low competition, high search volume? I see a few competitors ranking this way, but it does not flow, its very obvious they are stuffing. Thanks!
On-Page Optimization | | TP_Marketing0 -
Redirect sub domain to domain in .htaccessU
Hi all, (Total newbie with fourth post of the last 7 days askin' for help!...sorry!) I've discovered that we have a lot of URLs indexed with for example: http://test.betxpert.com/some-odd-url This gives me duplicate content in the search engines. I have searched the web and i can not find a solution fore redirecting http://test.betxpert.com/some-odd-url to http://www.betxpert.com/some-odd-url. Can anyone help me what to write in the .htaccess file? Best regards, Rasmus
On-Page Optimization | | rasmusbang0 -
Does Google give any (negative) weight to .info domains?
Hi, All! We're working with a client on setting up a support blog for their site (not hosted on-site because it's a related topic, not directly about their business). We're thinking about a few domain possibilities, but for some of the ones we'd like the .com is already taken. .info (as well as others) are available, and the client is interested in using a different TLD, but I'm shying away from it because of the concern that: a) people will look at it more suspiciously (exactmatch.info? must be spam) - but maybe that's just because I'm an SEO b) does Google have anything against exact match domains with endings like .info, .net, etc.? (I know there's never any guarantee that the exact match domain will continue to hold its weight in the algorithm at all, but taking that as a given for now - and we are planning on putting decent quality original content on it). Thanks in advance for the input! Aviva
On-Page Optimization | | debi_zyx0