Board index   FAQ   Search  
Register  Login
Board index PHP PHP General

RewriteRule

General discussions related to php

Moderators: macek, egami, gesf

RewriteRule

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
http://localhost/en/about_us


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.
clarence
New php-forum User
New php-forum User
 
Posts: 3
Joined: Mon Jan 03, 2011 1:30 am

Return to PHP General

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron