URL rewrite(SLUG) and URL redirection (htaccess)
问题 Below is my php code(qs.php). This file contain url links. Pretty links created by using SLUG. <html> <head></head> <body> <?php function create_slug($string){ $slug=preg_replace('/[^A-Za-z0-9-]+/', '-', $string); $slug = strtolower($slug); return $slug; } $slugurl= create_slug('SLUG-text-testing-purpose-only'); $file = 'qs1'; //this is a php file qs1.php $id = '12345678'; //testing ID $complete_url = $file."/".$id."/".$slugurl; ?> <a href ="<?php echo $full;?>"> This is a test link created