Jump to content

/ into /index.php


Recommended Posts

Everyone that go to

 

http://www.domain.com/folder/

 

Get redirected to :

 

http://www.domain.com/folder/index.php?id=100

 

That doesn't sound really usefull to me. And why you need mod_rewrite for that task in the first place...why you just don't use that :

 

index.php

<?php

if (!isset($_GET['id']))
{
  $id = 100;
} else {
  $id = (int) $_GET['id'];
}
...
?>

Link to comment
https://forums.phpfreaks.com/topic/156170-into-indexphp/#findComment-822344
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.