NameSilo

SEO Friendly URLS

SpaceshipSpaceship
SpaceshipSpaceship
SpaceshipSpaceship
Watch

SB_GEMINI

VIP Member
Impact
13
0
Close
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
Close
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
Close
thats a pretty cool fucntion.... howver, now indays google does follow the mystic word of queries
 
0
Close
i dont know if this is of any use, but this is the code for displaying the jokes title on pages

<?=$joke[title];?>
 
0
Close
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
Close
thxs :), where abouts do i add this in the .htaccess file?
 
0
Close
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
Close
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
Close
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
Close
DomainEasy: flexible LTO options. Close more domain deals with financing.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back