GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   .htaccess mod_rewrite Question (https://gfy.com/showthread.php?t=1348237)

Publisher Bucks 09-10-2021 10:56 AM

.htaccess mod_rewrite Question
 
Is it possible to use mod_rewrite to change the url from something like this...

domain.com/blah.php?id=45

To the following:

domain.com/blah/keyword/

If the data that I want to have in the new URL is only included in the page using calls to an SQL database and each page is dynamic?

Colmike9 09-10-2021 11:17 AM

Yeah it's possible.
Here's some good info to learn:
https://www.smashingmagazine.com/201...url-rewriting/

ZTT 09-10-2021 11:19 AM

Short answer is yes.

domain.com/blah/keyword/ is just a nicer looking alias for something like domain.com/?dir=blah&id=keyword

Search pretty urls.

Publisher Bucks 09-10-2021 11:20 AM

Thanks guys :)


All times are GMT -7. The time now is 08:06 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc