View Issue Details

IDProjectCategoryView StatusLast Update
0004019Project Tools & WebsitesFeaturepublic2021-02-06 06:36
ReporterKunda1 Assigned Toyorik  
PrioritylowSeverityminorReproducibilityN/A
Status assignedResolutionopen 
Target Version0.20 
Summary0004019: FreeCAD Website - .htaccess hack to dissappear .php extension from URL
DescriptionCurrently the website displays
/downloads.php
The request is to update the
.htaccess
so that the extension will be invisible AKA
/downloads

Related Forum thread

Github issue: https://github.com/FreeCAD/FreeCAD-Homepage/issues/42
TagsNo tags attached.
FreeCAD Information

Activities

Kunda1

2019-06-15 14:44

administrator   ~0013218

Last edited: 2019-06-15 14:48

Solution: In the .htacccess file add the following lines:

#remove php file extension-e.g. https://example.com/file.php will become https://example.com/file
RewriteEngine on 
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php [NC,L]

RedirectPermanent /download.php /downloads
RedirectPermanent /download /downloads 


yorik

2022-03-03 13:55

administrator   ~0016780

This ticket has been migrated to GitHub as issue 5946.

Issue History

Date Modified Username Field Change
2019-06-13 17:10 Kunda1 New Issue
2019-06-13 17:10 Kunda1 Status new => assigned
2019-06-13 17:10 Kunda1 Assigned To => kkremitzki
2019-06-13 17:17 Kunda1 Description Updated
2019-06-15 14:44 Kunda1 Note Added: 0013218
2019-06-15 14:48 Kunda1 Note Edited: 0013218
2019-06-15 14:48 Kunda1 Assigned To kkremitzki => yorik
2021-02-06 06:36 abdullah Target Version => 0.20