Jump to content

.htaccess redirecting a domain according to db results


adrianTNT

Recommended Posts

Hello, is it possible to do a db query and have the result affect the .htaccess?

I want to redirect a domain only if that domain is set in database to redirect.

I never seen this in .htaccess file and I dont know if it is possible.

Htaccess would contain something like:

 

// get variable from this x php file ..

// if (...) then redirect

 

Anyone has a simple sample for this?!

Thank you.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.