Redirect words into url

  • JabezDesign
  • Born
  • Born
  • User avatar
  • Posts: 3
  • Loc: Wyoming

Post 3+ Months Ago

I am having a brain lockout and I cannot for the life of how to write a simple php code for turning words into urls.

EX:
I type
Quote:
mydomain,com/services
in the address bar.

I want the url
Quote:
http://www,mydomain,com/services.php
to come up.

Anyone??

Thanks!
  • righteous_trespasser
  • Scuffle
  • Genius
  • User avatar
  • Posts: 6229
  • Loc: South-Africa

Post 3+ Months Ago

Is this on a site that you have created ... ? If so, you need to create an .htaccess file with the following inside it ...
Code: [ Select ]
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^(.*)$ $1.php
  1. Options +FollowSymLinks
  2. RewriteEngine on
  3. RewriteRule ^(.*)$ $1.php
  • JabezDesign
  • Born
  • Born
  • User avatar
  • Posts: 3
  • Loc: Wyoming

Post 3+ Months Ago

righteous_trespasser wrote:
Is this on a site that you have created ... ? If so, you need to create an .htaccess file with the following inside it ...
Code: [ Select ]
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^(.*)$ $1.php
  1. Options +FollowSymLinks
  2. RewriteEngine on
  3. RewriteRule ^(.*)$ $1.php


Yes it is my website, but this is not working.
Anymore ideas?

Thanks!
  • righteous_trespasser
  • Scuffle
  • Genius
  • User avatar
  • Posts: 6229
  • Loc: South-Africa

Post 3+ Months Ago

Can you be a little bit more specific when you say that it's not working. Do you receive any errors?

Also, where are you testing this?
  • JabezDesign
  • Born
  • Born
  • User avatar
  • Posts: 3
  • Loc: Wyoming

Post 3+ Months Ago

righteous_trespasser wrote:
Can you be a little bit more specific when you say that it's not working. Do you receive any errors?

Also, where are you testing this?


I am getting a "500 Internal Server Error"

This is being done at: http://www,jabezdesign,com/

try typing the following in your address bar: jabezdesign,com/services

Thanks!
Buddy

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 61 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.