questions.php to index.php

If you want your link to ask-me page to change from yoursite.com/ask-me/quotestions.php to yoursite.com/ask-me/index.php, you have to do a few changes in the coding.
First rename the questions.php file to index.php. This isn’t enough, you have the open the index.php file and find this like of coding:

echo ‘<p>’;
if ($perpage < $count) {
if ($pg > 1 && $pg <= $numpages) echo ‘<a href=”questions.php?page=’.($pg – 1).'”>Prev</a> · ‘;
else echo “Prev · “;

for ($x = 1; $x <= $numpages; $x++) {
if ($x == $pg) echo ‘[<strong>’.$x.'</strong>] ‘;
else echo ‘<a href=”questions.php?page=’.$x.'”>’.$x.'</a> ‘;
}

if ($pg < $numpages) echo ‘ · <a href=”questions.php?page=’.($pg + 1).'”>Next</a>’;
else echo ” · Next”;
}
echo ‘</p>’;

You have to change questiong.php to index.php in this coding. When the script will paginate your questions it will give you an error if you leave it to questions.php. This is how it has to look like:

echo ‘<p>’;
if ($perpage < $count) {
if ($pg > 1 && $pg <= $numpages) echo ‘<a href=”index.php?page=’.($pg – 1).'”>Prev</a> · ‘;
else echo “Prev · “;

for ($x = 1; $x <= $numpages; $x++) {
if ($x == $pg) echo ‘[<strong>’.$x.'</strong>] ‘;
else echo ‘<a href=”index.php?page=’.$x.'”>’.$x.'</a> ‘;
}

if ($pg < $numpages) echo ‘ · <a href=”index.php?page=’.($pg + 1).'”>Next</a>’;
else echo ” · Next”;
}
echo ‘</p>’;

These are all the changes you need to do to get a nice url for your ask-me script.