Jump to content

Change url text


ayok

Recommended Posts

Thats not going to work because your server will be looking for a non existent directory called newpage. mod_rewrite is what your looking for.

 

A simple example might be.

 

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ gbook.php?id=$1 [L]

 

Given the url http://www.myweb.com/newpage, the variable $_GET['id'] within gbook.php would hold 'newpage'.

 

 

Link to comment
https://forums.phpfreaks.com/topic/120207-change-url-text/#findComment-619967
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.