Web Development || Node JS, Angular, PHP

Pages

  • Home
  • About Us
  • Prtfolio
  • Motivational Quotes
  • Useful Links

Thursday, January 9, 2020

Codeigniter URL Routing, Suffix & Enable Query String

Wildcards:

We can use two types of wildcards, namely:
  1. :num –  Segment containing only numbers will be matched.
  2. :any – Segment containing only characters will be matched.

$route['(blog/:num)'] = 'tutorial/java/$1';
$route['(blog/:any)'] = 'tutorial/java';

Regular Expression
$route['blog/([a-zA-Z0-9]+)'] = 'tutorial/java';

Reference : https://www.formget.com/routes-in-codeigniter
Posted by Hanzala Subhani at 1:18 AM No comments:
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ►  2025 (1)
    • ►  May (1)
  • ►  2024 (3)
    • ►  January (3)
  • ►  2023 (2)
    • ►  July (2)
  • ►  2022 (2)
    • ►  June (1)
    • ►  May (1)
  • ►  2021 (6)
    • ►  April (2)
    • ►  February (2)
    • ►  January (2)
  • ▼  2020 (1)
    • ▼  January (1)
      • Codeigniter URL Routing, Suffix & Enable Query String
  • ►  2019 (13)
    • ►  October (3)
    • ►  June (1)
    • ►  April (2)
    • ►  March (5)
    • ►  February (2)
  • ►  2016 (2)
    • ►  November (1)
    • ►  April (1)
  • ►  2012 (8)
    • ►  March (1)
    • ►  February (5)
    • ►  January (2)
  • ►  2011 (24)
    • ►  October (2)
    • ►  September (1)
    • ►  April (1)
    • ►  March (12)
    • ►  February (1)
    • ►  January (7)
  • ►  2010 (4)
    • ►  June (1)
    • ►  April (3)

Popular Posts

  • Make Tab Dynamically Active Using JQuery and PHP
  • Extract Email Address From Search URL ( Different Search Engine )in PHP
  • HOW TO: Setup Gmail for Hosted Domains
  • SIMPLE CRUD – CODEIGNITER
  • Full Stack Developer
Theme images by enot-poloskun. Powered by Blogger.