Skip to content Skip to sidebar Skip to footer

Get Data From Within Url

On my website, say test.com, if someone visits test.com/hello I want it to redirect to test.com and pass the string data from after the '/' (in this case 'hello') into the page, fo

Solution 1:

You can use Rewrite Engine

RewriteEngine On
RewriteRule ^(.*)$ processor.php?url=$1

Post a Comment for "Get Data From Within Url"