Jump to content

Search the Community

Showing results for tags 'remove extension'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


WHMCS.Community

  • The Latest WHMCS Release
    • WHMCS 8.13 Release Discussion Board
  • WHMCS.Community
    • Community Announcements
    • Introduce Yourself
    • MarketConnect Partner Product Status Updates
  • Using WHMCS
    • Pre-Sales Questions
    • Admin & Configuration Questions
    • Installation, Upgrade, and Import Support
    • Using WHMCS
    • Troubleshooting Issues
    • Vendor Discussions
  • WHMCS Showcase
    • Showcase Your Site
    • Share Your Best Practices & Tips
  • Developing & Extending WHMCS
    • Third Party Add-ons
    • Service Offers & Requests
    • Developer Corner
    • Building Modules
    • Share Ideas for WHMCS Modules
  • Community Competitions
    • News, Announcements & Blogs from WHMCS
    • Competitions
  • General Discussions
    • General Discussion
  • General Feedback & Assistance
    • Feedback
    • WHMCS.Community Tips & Tricks
  • Third Party Developers's Topics
  • Turkish International Discussions's Topics
  • Russian International Discussions's Topics
  • Spanish International Discussions's Topics
  • Portuguese International Discussions's Topics
  • French International Discussions's Topics
  • Italian International Discussions's Topics
  • German International Discussions's Topics
  • WHMCS Brasil's Topics
  • WHMCS Brasil's Tópicos
  • ModulesGarden Club's Topics
  • Hungarian International Discussions's Segítség
  • ThemeMetro's Topics
  • WHMCS Services Club's Topics
  • WHMCS Global Services Club's Topics
  • Katamaze's Free Scripts
  • Katamaze's Module Support
  • Zomex Club's Topics
  • 0100Dev Club's Topics
  • RactStudio Club's Topics

WHMCS Version

  • V8.13.x Hotfixes
  • V8.12.x Hotfixes
  • V8.11.x Hotfixes

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me

Found 1 result

  1. May you please offer wisdom to help me achieve my desired URL for knowledgebase? rename knowledgebase to kb rearrange, so {$kbarticle.urlfriendlytitle} appears before {$kbarticle.id} hide / remove / trim and or redirect extensions *trailing slash *force lowercase * = extra fancy, but still, highly desirable original / stock http://domain.com/knowledgebase/1/Test.html new (what I currently have with code below) http://domain.com/kb/Test-1.html * rearrange and rename knowledge to kb desire http://domain.com/kb/test-1 *force lowercase, remove extension and rearrange and rename Here is my current code .htaccess: RewriteRule ^kb/[a-z0-9_-]+\-([0-9]+).html$ ./knowledgebase.php?action=displayarticle&id=$1 [L,NC] RewriteRule ^knowledgebase/([0-9]+)/([^/]*)$ ./knowledgebase.php?action=displaycat&catid=$1 [L,NC] RewriteRule ^knowledgebase$ ./knowledgebase.php [L,NC] Here is the original stock .htaccess on fresh WHMCS install: RewriteRule ^knowledgebase/([0-9]+)/[a-z0-9_-]+\.html$ ./knowledgebase.php?action=displayarticle&id=$1 [L,NC] RewriteRule ^knowledgebase/([0-9]+)/([^/]*)$ ./knowledgebase.php?action=displaycat&catid=$1 [L,NC] RewriteRule ^knowledgebase$ ./knowledgebase.php [L,NC] I've already fired up some template files, like these: knowledgebasecat.tpl knowledgebasearticle.tpl knowledgebase.tpl After I launched up the file, I didn't have to customize that much, and I just cut / paste some code, for example: stock code line #34 <a href="{if $seofriendlyurls}{$WEB_ROOT}/[u]knowledgebase/{$kbcat.id}/{$kbcat.urlfriendlyname}[/u]{else}knowledgebase.php?action=displaycat&catid={$kbcat.id}{/if}"> new code <a href="{if $seofriendlyurls}{$WEB_ROOT}/[u]kb/{$kbcat.urlfriendlyname}-{$kbcat.id}[/u]{else}knowledgebase.php?action=displaycat&catid={$kbcat.id}{/if}"> --- sources that helped me out, but didn't get me 100% desired results: #1 = http://stackoverflow.com/questions/9608366/remove-index-php-from-url-with-htaccess/9619319?noredirect=1#comment64671812_9619319 #2 = https://alexcican.com/post/how-to-remove-php-html-htm-extensions-with-htaccess/
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated