Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Page 2 of 2 FirstFirst 1 2
Results 11 to 16 of 16

Thread: mod_rewrite

  1. #11
    Senior Member
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    4,146
    Member #
    10263
    Liked
    1 times
    That's very odd, because I just tried it and it worked perfectly. Given:

    Code:
    RewriteEngine On
    RewriteBase /~antonio/test/
    
    RewriteRule ^index/?$ index.php [L]
    You can see the effects at http://theoldquarter.dyndns.org/~antonio/test/index and http://theoldquarter.dyndns.org/~antonio/test/index/ .

    These both give 404s, by the way, but if you notice the URI, it's pointing to index.php.

    You might be running into some issues with the ^, though. Try this:

    Code:
    RewriteRule ^/index/?$ /index.php [L]
    Or:

    Code:
    RewriteRule ^/?index/?$ /index.php [L]
    Only use the second one if the first one doesn't always work; I doubt it will make a difference. If only the second one works, try using:

    Code:
    RewriteRule ^index/?$ /index.php [L]
    Where the only difference is the leading / on index.php. In theory, I don't think these should make any difference (i.e., none of them should work, either) but I'm not sure. Are you 100% certain that you can use mod_rewrite on your server?

  2.  

  3. #12
    ljm
    ljm is offline
    Senior Member ljm's Avatar
    Join Date
    Aug 2006
    Location
    Manchester, England
    Posts
    284
    Member #
    13684
    Liked
    1 times
    Try it without the ^ and $, or with just the $. I've had similar problems with them.

  4. #13
    Senior Member Karloff's Avatar
    Join Date
    Oct 2005
    Posts
    744
    Member #
    11702
    still not working? tried every solution possible ... i think anyway.

    awilling to give you guys access to my files if you want to have a go? pm me if your feeling kind

  5. #14
    Senior Member
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    4,146
    Member #
    10263
    Liked
    1 times
    Before you go giving out access to your files, are you 100% certain that mod_rewrite works on your server?

  6. #15
    Senior Member Karloff's Avatar
    Join Date
    Oct 2005
    Posts
    744
    Member #
    11702
    100%... so say 1 and 1 anyway

    i'm only giving it out to certain ppl as well

  7. #16
    ljm
    ljm is offline
    Senior Member ljm's Avatar
    Join Date
    Aug 2006
    Location
    Manchester, England
    Posts
    284
    Member #
    13684
    Liked
    1 times
    I've an idea - replace the contents of that .htaccess file with a load of gibberish. It should result in a 500 Internal Server Error. If nothing happens, something is wrong.


Page 2 of 2 FirstFirst 1 2

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 01:25 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com