Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
fancy urls glued
#6
my solution:

index.php

PHP Code:
# get data from page
$my101 $_SERVER['REQUEST_URI'];
$data_index getXML($file);
...

#http://site.com/subdir1/page_from_subdir1.html = ok
#http://site.com/page_from_subdir1.html = redirect
if (($parent != '') && (substr_count($my101,'/')==1)) {
    
redirect('/index.php');
}
#http://site.com/page1.html = ok
#http://site.com/page1.html/ = redirect
if ((strpos($my101'.html/')!=0) || (strpos($my101'.php/')!=0)) {
    
redirect('/index.php');

Reply


Messages In This Thread
fancy urls glued - by bo0bon - 2013-02-23, 00:13:15
RE: fancy urls glued - by shovenose - 2013-02-23, 11:06:01
RE: fancy urls glued - by bo0bon - 2013-02-23, 13:44:02
RE: fancy urls glued - by shawn_a - 2013-02-23, 14:34:12
RE: fancy urls glued - by shovenose - 2013-02-23, 15:39:19
RE: fancy urls glued - by bo0bon - 2013-03-03, 04:32:28



Users browsing this thread: 1 Guest(s)