View Issue Details

IDProjectCategoryView StatusLast Update
0004019Project Tools & WebsitesFeaturepublic2019-06-15 14:48
ReporterKunda1 Assigned Toyorik  
PrioritylowSeverityminorReproducibilityN/A
Status assignedResolutionopen 
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

View 2 revisions

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 


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 View Revisions
2019-06-15 14:44 Kunda1 Note Added: 0013218
2019-06-15 14:48 Kunda1 Note Edited: 0013218 View Revisions
2019-06-15 14:48 Kunda1 Assigned To kkremitzki => yorik