Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

[Resolved] Mod_rewrite assistance

SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Spacemail by SpaceshipSpacemail by Spaceship
Watch

jdk

VIP Member
Impact
100
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Code:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?domain=$1 [L]
PHP:
$domain = $_GET['domain'];
 
2
Close
Thanks, was looking everywhere for that. Repped
 
Last edited:
0
Close
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
Close
CatchedCatched

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back