Forum Moderators: coopster
RewriteEngine on
RewriteRule (.*)/(.*)/(.*)/index.php $1/$2/$3/index.php?title=$3 $1
probably not the best way to do it though
i think realpath() [php.net] might be the way to go actually
Some of the directory names are like this for example:
www.mydomain.com/pics/p/ping_pong/
So the title is ending up looking like this: ping_pong Pics
Rather than what I would hope: Ping Pong pics
So, using the same code:
$dirs = explode('/', dirname($_SERVER['PHP_SELF']));
print '<title>' . $dirs[count($dirs) - 1] . ' pics</title>';
What would I add to make it a space rather than a _?
Does anyone know?
This was a large project, I've never made a website like this before...
It's actually a guitar tablature website, with over 20,000 php pages...
I think this is a rather difficult question, and I'm not even sure if it can be done...
But we'll find out I guess... :)
OK, within the index.php files, is a listing of links that look like this for example:
rolling_stones-paint_it_black [mydomain.com]
rolling_stones-ruby_tuesday [mydomain.com]
What'd I'd like the links to say are "Paint It Black Tab" and "Ruby Tuesday Tab", so it would have to somehow cut off, or not display all the text before the " - " for every link, capitalize the beginning of every word, change the _'s to spaces, and add the word "Tab" after ever link.
Yikes huh?
These links are allready pre-generated and embedded into the files, and there's no way I can make them generate anything other than like the examples above.
Does anyone know how to do this? Is it even possible?