Dynadot โ€” .com Transfer

[Resolved] Mod_rewrite assistance

SpaceshipSpaceship
Watch
Impact
98
mod_rewrite assistance

I am trying to do the following using mod_rewrite:

www.domain.com/test.com

It will then take and turn test.com into a variable called $domain
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains โ€” AI StorefrontUnstoppable Domains โ€” AI Storefront
Code:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?domain=$1 [L]
PHP:
$domain = $_GET['domain'];
 
2
•••
Thanks, was looking everywhere for that. Repped
 
Last edited:
0
•••
Daniel said:
Code:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?domain=$1 [L]
PHP:
$domain = $_GET['domain'];

Repped, was looking for that as well.
 
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
CatchedCatched
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
NameMaxi - Your Domain Has Buyers
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back