View Single Post
Old 02-25-2022, 03:15 AM  
Publisher Bucks
Confirmed User
 
Industry Role:
Join Date: Oct 2018
Location: New Orleans, Louisiana. / Newcastle, England.
Posts: 1,116
.htaccess question / url rewrite (?)

I know this should be possible but I'm having difficulty figuring out how.

I have a php variable at the top of my page like this:

Quote:
$collection = "blah blah something something";
What I'm trying to do is have it so that my .htaccess file will rewrite the URL of the page it is on to contain the verbiage inside that variable and that will become the url of the page like this:

domain.com/directory/blah-blah-something-something.php

Would anyone happen to know if this actually is doable, the page has a .php extension and secondly, would you happen to have the .htaccess code needed to make this happen?

Thanks for any help you can offer.

Oh and Happy Mardi Gras everyone

__________________
NOTHING TO SEE HERE
Publisher Bucks is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote