Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more
5 votes
Accepted

Should I redirect "ugly" URL to friendly URL?

You only need to redirect the "ugly" URL if you had changed the URL structure and the "ugly" URLs had already been indexed by search engines and/or linked to by third parties. In this case, it is ...
MrWhite's user avatar
  • 42.8k
5 votes

Should I redirect "ugly" URL to friendly URL?

It creates duplicate content issue and Search Engines dislike duplicate content. Ugly url MUST be validly redirect to seo friendly URLs to avoid duplicate content/pages issue.
Nandla's user avatar
  • 380
4 votes

When you use dash as space what do you use for dash?

The URL does not need to contain such level of detail. It is perfectly fine to have the url you propose: example.com/user/freddy-double-barrel for Freddy Double-Barrel. From a SEO point of view, the ...
marcanuy's user avatar
  • 2,644
4 votes

Do URLs that only consist of an id, for example, a timestamp, have a chance to succeed in SEO?

I always lean towards descriptive urls. They are easier for the users to understand. They are easier to maintain. And they have a tiny bit of impact on ranking. Google : URL structure best practices ...
Rohit Gupta's user avatar
  • 2,487
3 votes

mod-rewrite - sending any URL with ".php/" to 404

example.com/index.php/somefolder/anotherfolder/file/query... Everything after the file index.php in the URL is called "additional pathname information" (or path-info for short). Whether this is valid ...
MrWhite's user avatar
  • 42.8k
3 votes
Accepted

Structure homepage path

Having no path is definitely best practice. When people type your domain into their web browser, you will want to immediately show them your homepage without redirecting them. Having your home page ...
Maximillian Laumeister's user avatar
3 votes

Discrepancy in ScreamingFrog Depth Stats and actual list of URLs

As it was mentioned in the first answer, look at crawl path. The cause of what you are seeing, is, that on the site there could be different crawl pathes to the same target. You, and the crawler, ...
Evgeniy's user avatar
  • 10.1k
3 votes
Accepted

Discrepancy in ScreamingFrog Depth Stats and actual list of URLs

To find the answer, right-click one of the URLs in question and select Export > Crawl Path Report You will then get an excel file that will show you the different URLs it crawled through from the ...
Max's user avatar
  • 6,127
3 votes
Accepted

Mod Rewrite Multiple Query String

Just a few notes regarding your existing directives: RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l RewriteRule ^pdfs/([^/]*)/([^/]*)/([^/]*)/([^/]*)$ /pdftools/openpdf.php?...
MrWhite's user avatar
  • 42.8k
2 votes

How to keep SEO URLs after migrating my website to WordPress?

On WordPress install a plugin to do 301 redirects... Yoast SEO and Redirection plugin both do this. They allow you to input the old URLs, and map them individually to the new URL's. I would advised ...
DallasNZ's user avatar
2 votes

Change the product URL to a directory and drop the PHP to put articles about the product within its URL structure?

As has already been mentioned in @closetnoc's answer, the proposed new URL format is preferable to the old one using a .php extension. However, the real question I think here is whether you should "...
DocRoot's user avatar
  • 4,297
2 votes

Change the product URL to a directory and drop the PHP to put articles about the product within its URL structure?

I prefer /product/ to product.php. Why? Because it is not file dependent. What if you want to change the file name? Or temporarily use another page for a promotion? Because you could, assuming Apache,...
closetnoc's user avatar
  • 32.9k
2 votes
Accepted

Will Google index all the forum topics if they share one PHP file and use URL parameters?

Will Google index all the forum topics if they share one PHP file and use URL parameters? Short answer? Yes. More than one site I had was all parameter driven just like you are suggesting. One with ...
closetnoc's user avatar
  • 32.9k
2 votes

Will lengthening our URLs change how Googlebot crawls our site?

URL length does not have much impact on how Googlebot crawls. Changing your URLs will have the biggest effect. Googlebot will forever come back and crawl your old URLs. You will need to ...
Stephen Ostermiller's user avatar
2 votes

Will lengthening our URLs change how Googlebot crawls our site?

No, it won't. All you need to focus on is to make things easier for the end-user. Everything else doesn't matter anymore. Google's algorithms are very evolved and what's good for the user is good ...
Anuvesh's user avatar
  • 1,222
2 votes

Repetition Keyword URL Subfolder + Slug?

Slug URLs are a minor ranking factor search engines use when determining a particular page or resource's relevance to a search query. So URLs will give low impact in the ranking. It's just used to ...
Muhammad Dyas Yaskur's user avatar
2 votes

Should I redirect "ugly" URL to friendly URL?

Much ado is made of optimizing URLs for SEO. However, the real importance of URL shaping is preserving bookmark and external link traffic. Keyword-stuffing URLs is an old, cheap trick, and search ...
Harper - Reinstate Monica's user avatar
2 votes
Accepted

Clean URL's within subdirectories

To my mind, there are two ways to approach this problem. The first way is what you're already doing, i.e., trying to do everything with mod_rewrite. This is totally fine for small, simple projects but ...
Aaron's user avatar
  • 181
1 vote

How do I create clean URLs such that what is currently in a parameter goes in the path?

You are on the right path by using url rewriting but your rewrite rules can be simplified. .htaccess File <IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -...
Chris Rutherfurd's user avatar
1 vote

Which second separator to use in URL?

Personally, If I needed to use an operator other than a hyphen '-' I would use an underscore because it seems cleaner and is often used for variables when writing code. In your comments you said you'...
Michael Scott's user avatar
1 vote

How to add blog in URL (Blog page, Taxonomy page and Single page ) with pagination using WordPress

Taxonomy creates usually duplicated content. So i would make taxonomy terms as parameters to easy deindex them. Like this: pagination link - domain.com/blog/page/2/ taxonomy slug: pagination link - ...
Evgeniy's user avatar
  • 10.1k
1 vote

Should I redirect "ugly" URL to friendly URL?

Although there is an accepted answer already, I still felt the need to make a complete description, based on Google's own recommendations rather than various legends floating around the net. ...
Gábor's user avatar
  • 111
1 vote

URLs include a directory without an index page, should it be removed for SEO?

Why don't you benchmark rankings and then try the content hub approach first and see what happen? You may get a boost. I personally am a fan of removing redundant steps from a funnel and the product ...
Sandy Lee's user avatar
  • 1,101
1 vote

Nginx rewrite problem - displaying same page with or without .php extension after rewrite

location ~ \.php$ { try_files $uri =404; } This config matches /pages/page.php. In this case $uri (the first argument of try_files) is /pages/page.php. Thefore, if this file exists, nginx return ...
set0gut1's user avatar
  • 111
1 vote

Rewrite to SEO friendly URLs for language negotiation with type-map files on plain html files using .htaccess

I think I've found the solution on Apache's SVN repository. (I haven't tested it yet) Configuration for Multilingual Site Configuration for Multilingual Error Pages Configuration with Languages and ...
x21's user avatar
  • 69
1 vote

The name of a month as a string vs digit in a URL -- any downsides for SEO?

I would use the digits, as it makes your url shorter and easier to read for your users.
p3sn's user avatar
  • 284
1 vote

Migration from HTTP to HTTPS and changing URL structure at the same time

You should strongly consider going ahead with the restructured URL, since it is written much cleaner and would give better SEO results. The http to https is not really going to affect you, as long as ...
norcal johnny's user avatar
1 vote
Accepted

Fix existing URLs to hyphenate run-on words?

For the reasons you cite, you should change them to hyphenated words. Search engines are pretty good at extracting words out of run on sentences but that's a shot in the dark. I'm sure Google would ...
Rob's user avatar
  • 4,623
1 vote
Accepted

When you use dash as space what do you use for dash?

I suggest you use underscore for space replacement and dash for dash so "Freddy Double-Barrel" becomes freddy_double-barrel.
Michael Moriarty's user avatar
1 vote

Use of no-index-meta-tag on pretty URLs?

There is a way to set headers when rewriting. This is based on this Stackoverflow response and I used it successfully for one of my customer. An example of implementation would be to set an ...
brclz's user avatar
  • 181

Only top scored, non community-wiki answers of a minimum length are eligible