0
RewriteEngine On
RewriteRule  ^Assamese/([0-9a-zA-Z]+) assamese.php?gender=$1 [NC,L]
RewriteRule  ^Assamese/([0-9a-zA-Z]+)/([0-9a-zA-Z]+) assamese.php?gender=$1&alp=$2 [NC,L]
Ashwini Agarwal
  • 4,828
  • 2
  • 42
  • 59
premnath
  • 1
  • 1

1 Answers1

0

You can access the URL from PHP's $_SERVER super global, and specifically the REQUEST_URI index.

For example:

echo $_SERVER['REQUEST_URI'];

The full list of variables/values available in this superglobal (including hostname, paths etc) is on this page in the PHP docs.

You might also find this stack overflow answer valuable.

Community
  • 1
  • 1
developerjack
  • 1,173
  • 6
  • 15