Questions tagged [file-extension]
The file-extension tag has no usage guidance.
17 questions
0
votes
0
answers
171
views
How is it possible to prevent the display of json files from the browser?
How is it possible to prevent the display of json files present in a folder of an web application from the browser? I have already disabled director listening for that folder, but if I point directly ...
2
votes
2
answers
2k
views
How to remove all .html extensions from all pages of site running under Apache?
On a shared hosting environment based on CentOS-Bash, Apache (with Nginx as a "reverse proxy"), PHP and MySQL I host a MediaWiki website. Normally, no webpage has a .html extension.
I have ...
1
vote
1
answer
1k
views
Remove PHP extension from URLs such that the URLs work with or without a trailing slash
My directory structure is
- Assets
- Dashboard
- index.php
- account.php
index.php
about.php
verify.php
What I basically want it to be:
Remove the .php extension for example http://example.org/...
3
votes
1
answer
206
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
2
answers
3k
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
1
answer
34
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
1
answer
384
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
1
answer
4k
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
2
answers
214
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
2
answers
86
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
3
answers
4k
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 ...
5
votes
1
answer
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
1
answer
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
1
answer
690
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
1
answer
293
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
3
answers
346
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 ?
15
votes
3
answers
3k
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 ...