Questions tagged [file-extension]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
1answer
25 views

Would Google accept a text sitemap if the URL had a .php extension?

Google accepts a sitemap as .txt file with a list of URLs separated each by a newline. Would Google also allow the same text file format with a .php? Ie.mysitemap.php instead of mysitemap.txt?
2
votes
1answer
36 views

How do you create a home page without a file name or .HTML extension?

When we make HTML pages, we generally save it with a .htm or .html extension. But most webpages on the internet have extensions like .com or .org, for example, https://example.com. How do these pages ...
0
votes
1answer
32 views

Can search engines index webpages with path after “.html”?

Are search engines able to index a webpage which has a path after .html? Example: http://example.com/about.html/abc/123 Is it an acceptable implementation for SEO?
-1
votes
1answer
31 views

How to hide file extensions in the URL without removing them from HTML? (Apache2)

I'm quite new to hosting a website, so bear with me. I get that I can remove file extensions with the rewrite module. However, the ones that I've found requires me to also remove the extension in my ...
1
vote
1answer
2k views

Microsoft Edge browser not correctly filtering PDF files in upload file dialog with Contact Form 7

I am using a Contact Form 7 which allows you to attach a PDF file to the message: https://www.publictalksoftware.co.uk/contact-form/ Chrome correctly shows a filter: Firefox correctly shows a ...
1
vote
2answers
105 views

Remove file extensions using .htaccess and content duplication issue [duplicate]

I want to know if we strip out file extensions using .htaccess for a new website, do we have to add rel-canonical tag for every page to avoid Google considering them as duplicate content? To more ...
1
vote
2answers
73 views

PDF download fails because of…what?

On trying to download a pdf file my Firefox downloads a file without file ending and means it would be an application/octet-stream file: Only after a manually add to the file the ending pdf i become ...
5
votes
3answers
2k views

How to detect if file with a .png extension contains code or an image?

I was in a trouble last few days since my web host was hacked for POST on PHP files. I've been dealing with files with .png extension that have PHP code inside. I can't even try to edit one-by-one to ...
4
votes
1answer
2k views

Apache 2.4 Loads Image Files Even Without Extension. Why?

I have an HTML page with the following: <img src=J3 width="100" height="150" alt="Student Name" style="float:left;"/> In the same directory there is an image file, J3.jpg. The page containing ...
1
vote
1answer
3k views

Using htaccess to internally and externally redirect a page at the same time [duplicate]

I've been trying to figure this out for two hours, and I give up. I want to externally redirect about.php to about/, and also have about/ internally redirect to about.php RewriteRule ^about/$ /test/...
1
vote
1answer
248 views

Why does a CDN strip the file extension of an image to protect against leeching

So I was reading on Quora and came across this awesome picture: http://qph.is.quoracdn.net/main-qimg-fa81af575c5e0ef69d78fc011a71e865?convert_to_webp=true Trying to isolate this resource I noticed ...
0
votes
1answer
107 views

Adding .html to the URL while it is not a HTML page hurt to SEO?

If I added .html to the URLs of my website while the pages are not in HTML, will it hurt SEOof my site or will it be helful to my site in search engine rankings? For example, say my domain is www....
1
vote
3answers
327 views

Url's with same content , but different: trailing slash and .html

I have a website with the following url: http://www.site.com/folder/ But I also have the following url: http://www.site.com/folder.html Is this really bad for Google SEO ?
13
votes
3answers
2k views

What is the best file extension for an SEO friendly URL?

I'm working for a website to convert the website URL to an SEO friendly URL. I plan to use this: example.com/category-name/pageid-123-page-name I looked at some similarly categorized, highly ranked ...