1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need help with htaccess

Discussion in 'General PHP and MySQL Discussions' started by Puntocom, Apr 17, 2012.

  1. Puntocom

    Puntocom Well-Known Member

    Hi, I'm setting up a site to sell domain names and I want to redirect domains with this url format:
    to be redirected to:
    Please can you help me? I have tried several examples and it gives me error. This rule works but I don't want the URLs to be http://example.com/domainname.com.html
    RewriteRule ^([^/]+).html$ dominio.php?dominio=$1 [L]
    Any help would be greatly appreciated.
  2. Puntocom

    Puntocom Well-Known Member

    I solved it this way:
    RewriteRule ^dominio/(.*)$ dominio.php?nombre=$1
    TheVisitors likes this.

Share This Page