Questions tagged [clean-urls]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
19 views

Ahrefs Orphan Page Error - SEO Friendly Pagination using JavaScript

One of my clients is a Cybersecurity startup company. We are using a custom built theme on Drupal. We have a well-designed internal link building architecture. We have about 600 blog articles. We are ...
user avatar
1 vote
0 answers
23 views

Clean URL structure: /{id}/{slug} vs /{id}-{slug} [duplicate]

I am making a url structure similar to that of Stack Exchange webmasters.stackexchange.com/questions/{id}/{slug}, where no matter the slug you type there will be a 301 redirect to the correct slug as ...
user avatar
  • 111
2 votes
2 answers
80 views

Do short URLs obligate 301 redirects?

Some content management systems such as WordPress and Drupal have Short URLs by default (if the webserver allows it), but at least one other --- MediaWiki, doesn't. Before I continue with the process ...
user avatar
  • 57
2 votes
0 answers
80 views

How to make a content management system to load webpages without a PHP loader and its query strings? [duplicate]

I have a MediaWiki 1.35.2 Hebrew website which is principally all core; I host that website on a shared Apache, Nginx (as reverse proxy), PHP and MySQL hosting environment. The default behavior of ...
user avatar
  • 57
4 votes
1 answer
82 views

Mod Rewrite Multiple Query String

I'm having trouble using modrewrite to redirect a URL with multiple strings. I have a PDF handling script. I want to redirect something like: https://www.example.com/pdfs/samplepdf.pdf/open [or /...
user avatar
1 vote
1 answer
73 views

Clean URL's within subdirectories

I have a website with the following structure index.php contact.php about.html forum(dir) - index.php - thread.php What i want my htaccess to do Remove .php & .html extension, eg: when you ...
user avatar
1 vote
0 answers
33 views

Modify rewrite rule to handle four ids rather than just one [closed]

I have rewrite rule which gives id from link to script and it works perfectly: RewriteRule ^index/viewproduct/id/(\d+)$ produkty/index.php?id=$1 [L] I need one more RewriteRule to handle URLS like: ...
user avatar
  • 21
0 votes
0 answers
25 views

Encoding spaces in urls for SEO when hyphens are already present in text

From my research it seems that hyphen - chars are the preferred word breakers in urls in respect to SEO. I'd like to use text in my urls for both SEO purposes and for functionality, consuming the text ...
user avatar
  • 348
1 vote
0 answers
26 views

Disallowing a handler in robots.txt while adding its dynamic URLs to the XML sitemap

I'm using ASP.NET webforms, and I have a page lets call it Subjects.aspx, I don't want crawlers to crawl that page but I want them to crawl the dynamic URLs that are powered by it. For example /...
user avatar
  • 123
0 votes
1 answer
52 views

Repetition Keyword URL Subfolder + Slug?

here's the question. In this sense, it is not keyword stuffing in the URL if it is mentioned once as slug and category. It would be more user friendly to have a short URL but it is questionable which ...
user avatar
1 vote
0 answers
186 views

How to host a PDF on a Wix website using a SEO-optimised path?

I just created my first website with Wix. I want to add a PDF file to it. Wix suggests to upload the file to the Wix and then add a button/icon for users to open. The problem is, the path to this file ...
user avatar
  • 11
2 votes
1 answer
2k views

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

I have a substantial number of rewrite rules in place for a variety of reasons such as: disallow indexes, set custom error pages, force non-www, https, strip trailing slash, redirect index.html or....
user avatar
  • 41
2 votes
0 answers
36 views

How should I restructure my URLs to make development easier while preserving SEO?

I am trying to fix the URL structure of an ecommerce site that has about 90k part pages. The site has no URL directory structure. Thus, all 90k pages are under the root like example.com/part-page-one. ...
user avatar
2 votes
1 answer
294 views

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

My url is http://localhost/store/product-detail.php?p=prod%name%test i want it to look like this http://localhost/store/prod-name-test or something like this as other stores do http://localhost/store/...
user avatar
2 votes
1 answer
45 views

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

So there is a website which is has dozens of themes e.g.-> cats Ford birds NASA... U get the point. And then every theme has a unique topic. cats ->> Topic1, Topic2,..... Ford->> Topic1, Topic2,.....
user avatar
2 votes
2 answers
46 views

Will lengthening our URLs change how Googlebot crawls our site?

Currently we are using URL fetched from main title of article (55 characters). We are planning to increase title of article up to 100 characters which tends to increase length of URL to 100+. Will ...
user avatar
  • 184
2 votes
0 answers
72 views

After rewriting RoundCube URLs, CSS, JS, and image resource links are broken

What I'd like to do is that I want to make nice URLs for my roundcube pages with .htaccess. For example: RewriteRule ^latest/$ index.php?_action=news&type=latest [NC,L] If I go to this ...
user avatar
  • 121
3 votes
2 answers
1k views

Which second separator to use in URL?

I'm already using - as a separator in my URLs, for some reasons I need to add a second one. According to RFC 3986 I can use ., _ and ~. I also have seen some sites using + as a separator. I'm ...
user avatar
  • 39
3 votes
2 answers
159 views

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

I have a product with url http://example.com/category/product.php. In short will come some blog articles, having urls like http://example.com/category/product/article1/, http://example.com/...
user avatar
  • 9,599
0 votes
1 answer
35 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/ ...
user avatar
  • 103
1 vote
1 answer
19 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 -...
user avatar
4 votes
4 answers
3k 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 "...
user avatar
  • 229
2 votes
0 answers
27 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 ...
user avatar
  • 121
1 vote
2 answers
60 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 ...
user avatar
  • 199
2 votes
1 answer
25 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 /...
user avatar
  • 21
4 votes
1 answer
885 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 =...
user avatar
  • 81
1 vote
0 answers
44 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 ...
user avatar
  • 369
4 votes
3 answers
672 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 ...
user avatar
  • 69
2 votes
1 answer
60 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-...
user avatar
  • 21
1 vote
1 answer
2k 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....
user avatar
  • 113
3 votes
1 answer
153 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 ...
user avatar
0 votes
1 answer
33 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 ...
user avatar
2 votes
2 answers
884 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 "...
user avatar
5 votes
1 answer
429 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 ...
user avatar
1 vote
2 answers
219 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 ...
user avatar
2 votes
2 answers
80 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 ...
user avatar
5 votes
0 answers
576 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 ...
user avatar
  • 51
3 votes
2 answers
534 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. ...
user avatar
  • 81
2 votes
1 answer
41 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: /...
user avatar
3 votes
2 answers
377 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 ...
user avatar
  • 737
3 votes
2 answers
1k 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>...
user avatar
  • 31
0 votes
0 answers
17 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 ...
user avatar
1 vote
1 answer
67 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 ...
user avatar
2 votes
1 answer
267 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 %{...
user avatar
  • 323
1 vote
1 answer
2k 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 ....
user avatar
1 vote
1 answer
38 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 ...
user avatar
  • 737
2 votes
2 answers
360 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 ...
user avatar
  • 23
1 vote
4 answers
23k 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 ...
user avatar
5 votes
3 answers
2k 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-...
user avatar
1 vote
1 answer
3k 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/ => ...
user avatar