Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Sep 2007
    Posts
    238
    Thanks
    9
    Thanked 0 Times in 0 Posts

    RewriteRule working... sometimes!

    This is really strange.
    I want my rewrite to do a shortcut from

    Code:
    http://www.mysite.com/advert
    to

    Code:
    http://www.mysite.com/adverts/october
    here is my rule:

    Code:
    RewriteRule ^advert$ /adverts/october/index.php [L]
    It always works on my office PC using the internal proxy. However, testing it on my phone using 3G, it usually goes to http://www.mysite.com/advert then jumps to http://www.mysite.com/adverts/october

    Where am I going wrong?

  • #2
    Regular Coder
    Join Date
    Sep 2007
    Posts
    238
    Thanks
    9
    Thanked 0 Times in 0 Posts
    Think I've sorted it. I removed RewriteBase / and it seems to be working now.


  •  

    Posting Permissions

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