Search results

  1. C

    mod_rewrite (redirect and etc)

    Tnx mistwang, now everything is working properly. But can you specify why this my rule causes infinite redirect? RewriteEngine On RewriteRule ^([^?]*)(.*)$ http://domain.com/$1$2
  2. C

    mod_rewrite (redirect and etc)

    Auser, it's not acceptable in my case: http://11.22.33.44/folder/x.php?x=1&y=2 --> http://domain.com/folder/x.php?x=1&y=2
  3. C

    mod_rewrite (redirect and etc)

    Thanks auser but I actually need not to redirect something. I just need to rewrite in all pages Ip to domain name.
  4. C

    mod_rewrite (redirect and etc)

    so, problem is solved for rewrite all url's like: http://11.22.33.44/folder --> http://domain.com solution is: RewriteEngine On RewriteRule ^([^?]*)(.*)$ http://domain.com/$1$2 work with all dynamic links like http://domain.com/page?p=67&......etc
  5. C

    mod_rewrite (redirect and etc)

    test that before - infinite redirect ) Why this expression doesn't work? RedirectMatch (.*) http://domain.com$1 it's a good solution
  6. C

    mod_rewrite (redirect and etc)

    Good day I've installed v.4.0.1. Firstly, I need to redirect all links www.domain.com to domain.com. Also I really want to rewrite links with ip to links with domain name instead ip. ------- Redirect in .htaccess: RewriteEngine on RewriteCond %{HTTP_HOST} ^yoursite\.com...
Top