Code: Select all
Options +FollowSymLinks
RewriteEngine on
RewriteRule auto/id/(.*)/ auto.php?id=$1
to
mywebsite.com/title_of_vehicle/
need php code for mod-rewrite to translate link to mywebsite.com/title_of_vehicle/
sorry... kind of a beginner.
Moderator: General Moderators
Code: Select all
Options +FollowSymLinks
RewriteEngine on
RewriteRule auto/id/(.*)/ auto.php?id=$1
Code: Select all
<?php
$id = $_GET["id"];
// look up the title
header("Location: /title-of-vehicle");
exit;