View Single Post
Old 09-30-2015, 06:29 AM  
zerovic
Confirmed User
 
zerovic's Avatar
 
Industry Role:
Join Date: Apr 2010
Posts: 1,087
actually it's not that hard once you understand how this works.. the most basic example would be

create a file called .htaccess and paste this into it

Quote:
<IfModule mod_rewrite.c>

RewriteEngine On

RewriteRule ^([^/]+)/([^/]+)/([^/]+) index.php?first=$1&second=$2&third=$3 [NC,L]

</IfModule>
save it and upload it to your server

now create the index.php file

Quote:
<?php

print_r($_GET);

?>
upload both to your server and open up

domain.com/cars/bmw/engine

it will print something like

Array ( [first] => cars [second] => bmw [third] => engine )

Regards.
__________________
php, html, jquery, javascript, wordpress - contact me at contact at zerovic.com
zerovic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook