Dynadot โ€” .com Registration $8.99

SEO Friendly URLS

Spaceship Spaceship
Watch
Impact
13
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Code:
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteRule jokes-(.*).htm$ /joke.php?p=$1

Which *should* make http://www.jokecabin.com/jokes-joketitle.htm
The code will need to be saved as .htaccess and uploaded to your root directory.

-Eric
 
0
•••
i all ready had a .htaccess so i just added that code to the file.

but it dosnt seem to work... thxs for your help

whoever manages to get this working, gets themsleves $100NP
 
0
•••
thats a pretty cool fucntion.... howver, now indays google does follow the mystic word of queries
 
0
•••
i dont know if this is of any use, but this is the code for displaying the jokes title on pages

<?=$joke[title];?>
 
0
•••
PHP:
$data = explode('/', $PHP_SELF);
echo $data[1];

PHP:
$url_info = explode('/', $PHP_SELF);
echo $url_info[0];    // Shud be your joke title...not sure  may need to chagne 0 to 1 or something


Adjust $data[1] to $data[2] if necessary...or maybe more
 
0
•••
thxs :), where abouts do i add this in the .htaccess file?
 
0
•••
SB_GEMINI said:
thxs :), where abouts do i add this in the .htaccess file?



in your public_html folder if you have one

and that php code ^ there just goes in your php files %%- %%-
 
0
•••
sry its done nothing

this is how i added it

<?PHP

$data = explode('/', $PHP_SELF);
echo $data[1];

$url_info = explode('/', $PHP_SELF);
echo $url_info[0]; // Shud be your joke title...not sure may need to chagne 0 to 1 or something

?>

i did what you said there and tried putting 1 instead of 0 there, and ive put SecondVersion's code in the .htaccess file aswell...
 
0
•••
SB_GEMINI said:
sry its done nothing

this is how i added it

<?PHP

$data = explode('/', $PHP_SELF);
echo $data[1];

$url_info = explode('/', $PHP_SELF);
echo $url_info[0]; // Shud be your joke title...not sure may need to chagne 0 to 1 or something



i did what you said there and tried putting 1 instead of 0 there, and ive put SecondVersion's code in the .htaccess file aswell...

?>


try this and see what changes
<?PHP

for(x=0, x>= 8, x++)
{

$data = explode('/', $PHP_SELF);
echo $data[$x];
}

?>
 
0
•••
Dynadot โ€” .com Registration $8.99Dynadot โ€” .com Registration $8.99
Appraise.net
Unstoppable Domains
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back