1. #1
    Mechagnome Punisher's Avatar
    Join Date
    Dec 2012
    Location
    Québec
    Posts
    569

    URL rewriting help

    Hi!
    I need help for some url rewriting, this is my actual code:

    HTML Code:
    RewriteCond %{HTTP_USER_AGENT} "ipod|iphone|ipad|android|palm|blackberry" [NC]
    RewriteRule (.*) [url]http://myurl[/url] [R=301,L]
    Its actually working, but I want to add an exception, if somebody comes from a specific url there is no rewriting

    ie.

    If you comes from google.com, no rewriting for you


    Hope some1 can help me. It doesn't look extremly hard to do, but Im newbie to url rewriting
    My first build:
    Storage: Kingston SSD Now V200+ 120G and WD Caviar Blue HDD 500 G
    Processing Units: i5-3570k @ 3.8 Ghz cooled by 212 Evo and MSI Twin Frozr 3, R7850 @ 900, 1200
    Mobo, Ram, PSU Gigabyte Z77-D3H and G.Skill ripjaw 2x 4G with XFX 550w
    If I am unreadable, its not because I hate grammar, its because Im french-canadian

  2. #2
    googling URL rewriting gives http://httpd.apache.org/docs/2.0/misc/rewriteguide.html as my second response.

    have you checked that page yet?

    ---------- Post added 2013-02-02 at 10:04 PM ----------

    also, if you are a developer, hobbyist or even simply studying IT related matters, you're expected to search for such things yourself. in 99.9% of the cases, someone else has had the same issue and either found the solution themselves, or asked the question and either got an answer, or got what wasn't the answer, but was a great aid in what to do.

  3. #3
    Mechagnome Punisher's Avatar
    Join Date
    Dec 2012
    Location
    Québec
    Posts
    569
    I searched b4 posting, but never found this page

    I'll read it in few mins, If I don't find what I want I'll search again
    My first build:
    Storage: Kingston SSD Now V200+ 120G and WD Caviar Blue HDD 500 G
    Processing Units: i5-3570k @ 3.8 Ghz cooled by 212 Evo and MSI Twin Frozr 3, R7850 @ 900, 1200
    Mobo, Ram, PSU Gigabyte Z77-D3H and G.Skill ripjaw 2x 4G with XFX 550w
    If I am unreadable, its not because I hate grammar, its because Im french-canadian

  4. #4
    Add a cond on the referer

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •