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]
            Asked
            
        
        
            Active
            
        
            Viewed 43 times
        
    0
            
            
         
    
    
        Ashwini Agarwal
        
- 4,828
- 2
- 42
- 59
 
    
    
        premnath
        
- 1
- 1
- 
                    I have to try this one case not yet working.please help me – premnath Oct 16 '15 at 06:05
- 
                    if I can use both RewriteRule.i will get first rule only not yet get second rule parameter of both values in that page . – premnath Oct 17 '15 at 07:26
1 Answers
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