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?


I want to

redirect to: ... ect=123abc

I am having trouble finding variable handling like this. the subject=xxxxxx where xxxxxx is dynamic, but the page location is static.
  • righteous_trespasser
  • Scuffle
  • Genius
  • User avatar
  • Posts: 6228
  • 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 43 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-2017. Ozzu® is a registered trademark of Unmelted, LLC.