Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [clean-urls]

The tag has no usage guidance.

0
votes
1answer
20 views

Structure homepage path

What is the best practice for a homepage path? I see two options: No path at all: http://www.example.com/ OR a path based on the homepage <title>: http://www.example.com/hello-and-welcome/ ...
1
vote
1answer
11 views

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

I want to this structure in default post type. Archive Page (Blog page) - example.com/blog/ pagination link - example.com/blog/page/2/ Taxonomy page - example.com/blog/taxonomy-slug/ pagination link -...
4
votes
4answers
2k views

Should I redirect “ugly” URL to friendly URL?

I use mod_rewrite to rewrite https://example.com/?page=some-page&tab=2 to https://example.com/articles/some-page/2. But people can still access both URLs. I want to know: should I redirect the "...
2
votes
0answers
26 views

Does using keywords in the image URL help the image rank for those keywords in Google image search? [duplicate]

I've always been told to use URL Rewriting on my sites because it was better for SEO. (http://example.com/articles?id=255 => http://example.com/articles/rewriting-img-links) Now, I can see on this ...
1
vote
2answers
45 views

Discrepancy in ScreamingFrog Depth Stats and actual list of URLs

I have crawled my website with Screaming Frog, it has roughly 200 pages, most of which are in example.com/category/product, however, the tool shows me that these are actually on 4-5 clicks away from ...
2
votes
1answer
19 views

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

A client's website has the following structure: /products/product-1 /products/product-2 /products/product-3 These product urls are keyword optimised pages for organic search. Google also indexes /...
4
votes
1answer
455 views

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

I have implemented the following Nginx code: location / { try_files $uri $uri.php $uri/ @extensionless-php; index index.html index.htm index.php; } location ~ \.php$ { try_files $uri =...
1
vote
0answers
33 views

If I link to clean URLs based on the page title but redirect to URLS with ids as part of a site migration, is that bad for SEO?

I'm importing stuff from a Drupal site that has a couple of alias URLs: /node/123 /my-alias-node-title My new site is a very simple CMS handmade in PHP by me as a practice. In the new system, the ...
0
votes
0answers
11 views

dash in url like path separator [duplicate]

I have this url: mysite.com/search/{where}/{what} where: where is a path variable defined by user what is a path variable defined by user ex: mysite.com/search/usa/cars I d'like allow user refine ...
4
votes
3answers
338 views

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

When visiting the website www.example.com/ the visitor should be redirected to the correct language version, e.g. www.example.com/en for english and www.example.com/es for spanish. My current ...
2
votes
1answer
53 views

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

I'm aware about the difference between my_domain.com/my-article1-title and my_domain.com/2015/12/my-article1-title. In my application I have the following type of urls: my_domain.com/2015/december/my-...
1
vote
1answer
938 views

Removing slash from directory URL

I need to somehow remove the last slash in my directory URLs. For example, instead of example.com/projects/, I'd like to see example.com/projects. I have been trying many solutions with no luck so far....
3
votes
1answer
140 views

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

There are several reports of migration to HTTPS (using 301 redirects and HSTS) without an impact to rankings (no fluctations). Since that seems like changing URL structure I'm thinking to migrate ...
0
votes
1answer
25 views

Fix existing URLs to hyphenate run-on words?

Say I have a site listing Academy Awards whose URLs were built using run-on words. http://example.com/bestactress/2016 http://example.com/bestdirector/2016 http://example.com/bestpicture/2016 As a ...
1
vote
3answers
444 views

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

The design decision was to automatically replace spaces with dash (-) when building URLs. This led to URLS such as example.com/user/john-smith. This was fine as long as names were "JohnSmith" and "...
6
votes
1answer
287 views

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

By now I am fighting through the world of SEO and run into a problem, I think. Let's say I have a page like www.example.com/i-am-a-pretty-url, which is re-written by .htaccess from i-am-ugly-url.php ...
1
vote
2answers
158 views

Is it a good idea to change URL scheme of an established website to match query?

I'm targeting queries are in the form: "X Y for Z" Website is very established (1M+ traffic), but the competitor with URLs /X-Y/for/Z got to the 1st place (we were a first place for years). Our ...
2
votes
2answers
72 views

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

Because each platform has a unique structure and different rules for URLs, SEO URLs may be changed when migrating data from one content management platform to another. Do I have have to use an ...
4
votes
0answers
477 views

Using Nginx to rewrite a friendly URL to index.php handler gives 404 errors

I am having some issues getting the below to work the way I expect. What I am trying to do is take a url like https://example.com/TOPIC/courses/details/143911 but have it sent to php with the URI ...
3
votes
2answers
299 views

Writing clean urls with .htaccess

Update - Alright thanks everyone for your tests, it really helped. The code is good. My problem was not having absolute "/" links. (Due to moving from public_html folder). Only 2 concerns i have now. ...
2
votes
1answer
23 views

Should I use semantic URLs when they might change from time to time?

My application relies heavily on the hierarchy of its entities and the hierarchy also gives needed context to the entities details page. Hence my current URL scheme represents the hierarchy: /...
3
votes
2answers
218 views

What should the canonical URL be when users can filter on multiple categories at once?

I'm totally revamping my site's URL structure and have now defined the following structure of URLs to prevent duplicate content (in which the /c/ part in the URL determines that a country filter is ...
3
votes
2answers
654 views

User profile URL design

I've noticed that some sites are moving away from root-directory user profiles. For example, YouTube channel URLs are now /channel/<id> and /c/<username> instead of simply /<username>...
0
votes
0answers
14 views

Removing .html & .php from URL [duplicate]

I have searched religiously through the web to find an answer to this quest. I don't know thing about .htaccess or web.config. I'm currently hosting my website through GoDaddy.com. From what ive ...
1
vote
1answer
58 views

Will flattening the information architecture affect SEO for end pages?

I am in the middle of a project for a client (University) and was wondering if anyone can shed some light on an search engine optimization (SEO) and information (IA) issue. At the moment they have ...
2
votes
1answer
194 views

“Friendly URLs” rule in .htaccess interfering with some directories

My .htaccess is set up to remove .html from URLs as follows: RewriteEngine on RewriteCond %{http_host} ^example.com [NC] RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,NC] RewriteCond %{...
1
vote
1answer
1k views

What is the htaccess code for a clean URL for a user profile page?

I have tried code given on under topic clean URLs using .htaccess, but it is nor working on my website. Actually I am getting static content, but not getting parameters (dynamic content.) My ....
1
vote
1answer
36 views

Friendly URL's with + instead of - interpreted differently/negatively?

A function on my site is replacing all spaces in my friendly URL's to "+". So an article named: "best cars 2014", becomes "www.example.com/best+cars+2014". Is this negative for SEO? E.g. would this ...
2
votes
2answers
312 views

How is a slash in the URL path interpreted by search engines?

I would like to know your opinions on the following URL structure. Is the following SEO best practice and why? If targeting search term "blue suede shoes"... Would "example.com/blue/suede-shoes/" be ...
1
vote
4answers
12k views

Remove folder name from rewritten URLs

Consider this URL: http://example.com/gallery/20141111-some-title In this URL I want to hide gallery/: http://example.com/20141111-some-title How can I achieve this using mod_rewrite? I used ...
5
votes
3answers
1k views

Should an ID go at the beginning or end of the URL for SEO? [duplicate]

Says I have a link, which contains the ID = 19963307 Type 1 : http://stackoverflow.com/questions/19963307/how-to-install-asp-net-mvc-5-on-a-server Type 2 : http://stackoverflow.com/questions/how-...
1
vote
1answer
2k views

Configure JBoss to handle the home page URL instead of requiring users to type a long URL

Question: Is there a way in JBOSS to have different URLs provided by the users resolve to other URLs; i.e. http://OurAppUat/ => http://OurAppUat/web/app?environment=UAT http://OurAppSIT/ => ...
1
vote
0answers
41 views

How can I fix multiple URLs pointing to a single page using ASP/IIS

I have millions of reports in our ASP website and have changed my URL structure lots of times to make the URLs more user-friendly as per SEO guidelines. Currently I am facing duplicate content ...
4
votes
5answers
146 views

SEO URL, Category vs Location Priority

We are building a website for listing out brand information. As a reference it is comparable to yelp.com. Basically a brand will belong to a category and an area. From SEO point of view what will be ...
1
vote
0answers
23 views

Clean URLs won't work in Drupal 7 on IIS [closed]

I am using Drupal 7 and IIS 8 as my web server. When I click Clean URLs in the configuration, I check it and then click save, then it loads the page without the box checked. However I can type in ...
1
vote
1answer
1k views

Using RewriteBase in .htaccess to make links pretty

I'm working on a project right now and I'm trying to make the links pretty. We have urls like this: http://subdomain.domain.com/DynamicCountry/DynamicName/file.php What I'm trying to do is set the ...
3
votes
2answers
129 views

Should I replace non-user friendly URLs with friendly ones, and if so, how?

I have just added my site to Google Web Master Tools and discovered that some links (for example: In the section "Search Query / Top pages") have a URL format like: example.com/page.php?id=1234 This ...
1
vote
4answers
1k views

What is the best practice to have a number in the clean URL or not?

I'm confusing to choose my clean URL format for better SEO. Here are my two options: example.com/apple example.com/123/apple The first format is very clean. It would be much more familiar and ...
0
votes
2answers
830 views

Improvement of url by changing slash to underline or dash [duplicate]

I have a website with links similar to: http://stackoverflow.com/questions/4183948/css-set-background if I change links to: http://stackoverflow.com/questions/4183948_css-set-background ( / to _ ) ...
2
votes
1answer
1k views

Clean URLs - is it better to not have a colon or comma them?

I'm trying to create the following kind of URL: www.example.com/state:ca/type:apartment,condo/price:0,20000/ or www.example.com/state/ca/type/apartment/condo/price/0/20000 Is it better to not ...
1
vote
1answer
80 views

Canonical URL's for interchangeable parameters

I'm wondering how should I use canonical tags in such a case: I compare two items, lets say shoe brands. So one of my pages look like this: http://shoes.com/compare/adidas/vs/nike/ and another page ...
4
votes
1answer
5k views

Clean URLs without PHP file extension

I want to make my URLs clean, for example: http://sample.com/about-me instead of: http://sample.com/about-me.php This is my code: RewriteEngine On RewriteBase / RewriteCond %{...
2
votes
2answers
361 views

Does Google search past the ? or # characters of a URL?

Does Google search beyond the ? or # characters in a URL, example: http://mysite.com/support/general-questions/what-are-the-standard-features-and-functionality?node=node3_50346 Would I be better off ...
2
votes
1answer
137 views

Clean URL using index files or mod_rewrite

Is it better to make clean URL's using index files in directories or simply using mod_rewrite rules to remove the file extensions?
0
votes
1answer
746 views

URL encoding - what difference to SEO? + or _ or - [duplicate]

I have a URL e.g.: http://mysite.com/tracks/backing-track/101153/ABBA/Super+Trouper QUESTION does it make a difference to SEO when using + or - or _ in the URL between words? Is one more readable ...
20
votes
6answers
6k views

Why are extensions often hidden on URLs?

Many times I see that URL extensions are hidden (e.g. .html, .php), but not all websites do this. Why do webmasters hide the extension? Is it for security, for the URL to look cleaner, or for some ...
1
vote
1answer
84 views

URL Naming practise

Hi wanted to check if at the end of the URL (http://www.abcd.com/product-name/subproduct,default,sc.html) we have characters like default,sc and then .html, does having default,sc have an impact on ...
0
votes
1answer
106 views

SEO for a complex URL with multiple specifiers

I have a jobs website. There are categories and sub categories e.g the URL for builders is www.mydomain.com/jobs/all/active/202/tradesmen/799/builders/county/all Because of the framework I'm using (...
4
votes
4answers
441 views

Removing page levels/ keeping url clean

I have recently put my site live - http://www.soundplaza.co.uk I then bumped into a few articles mentioning about page length and depth and I was wondering if I should change the URL structure while ...
1
vote
1answer
134 views

“good” way to redirect users and robots for internationalization?

I have a website in Spanish and English. When there isn't any subdomain selected the preferred language is taken from the browser preferred language or a cookie. I have the following URLs es....