General discussions related to php

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 3
Joined: Mon Jan 03, 2011 1:30 am


Postby clarence » Wed Aug 01, 2012 10:19 pm

Hi all,

let say i want to have a url exactly like below

Code: Select all


en is actually the language and about_us is the page

How to write a RewriteRule so that in my php file, i can get these 2 values using $_GET, for example;

Code: Select all

$_GET['lang'] = 'en';
$_GET['page'] = 'about_us';

Thank you in advance.

Return to “PHP General”

Who is online

Users browsing this forum: Bing [Bot] and 8 guests