htaccess help. . . something basic.

  • 4waymedia
  • Newbie
  • Newbie
  • 4waymedia
  • Posts: 5

Post 3+ Months Ago

Thanks for viewing. Can anyone leave an example or point me in the direction to:

use htaccess to allow me to use a variable after my domain name?

EXAMPLE:

I want http://www.mydomain.com/123abc to

redirect to:

http://www.mydomain.com/handleMyRequest ... ect=123abc

I am having trouble finding variable handling like this. the subject=xxxxxx where xxxxxx is dynamic, but the page location is static.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • righteous_trespasser
  • Scuffle
  • Genius
  • User avatar
  • Posts: 6230
  • Loc: South-Africa

Post 3+ Months Ago

Code: [ Select ]
ReWriteEngine on
RewriteRule ^(.*)$ handleMyRequest.php?subject=$1 [L]
  1. ReWriteEngine on
  2. RewriteRule ^(.*)$ handleMyRequest.php?subject=$1 [L]


I am no expert, but that should do it ...

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 152 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.