SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot
    Join Date
    Jul 2003
    Location
    Romania
    Posts
    118
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    URL rewriting without mod_rewrite

    Hello!

    Is it possible to rewrite an url without using mod_rewrite? If yes, how?

    Thanks.

  2. #2
    SitePoint Addict ALL's Avatar
    Join Date
    Oct 2005
    Location
    South Dakota
    Posts
    215
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    you should beable to just use:

    PHP Code:
    header("Location: http://www.wsforums.com"); 
    if that doesnt work for some reason you could always do a meta refresh or a javascript redirect like this:
    HTML Code:
    <meta http-equiv="refresh" content="1;url=http://www.wsforums.com">
    (this goes in the <head> tag)
    in javascript use:
    HTML Code:
    <script type="text/javascript">
    document.location = "http://www.wsforums.com";
    </script>
    Did I help you?
    You can repay me, support one of my projects (no money needed):
    JavaScript Wiki, Another Web Forum, Paranormal Site

  3. #3
    SitePoint Wizard silver trophy
    Join Date
    Mar 2006
    Posts
    6,132
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you can make a bunch of directorys and put an index.php script in each.
    these index.php scripts can then include some other script which will examine the $_SERVER['REQUEST_URI'] and output the neccesary data to the browser.

    you also might be able to set a php script as your custom error page.

    neither are a very good solution.

    if you dont have mod_rewrite because your server is not apache, there are other rewriting modules for other server software.

  4. #4
    SitePoint Member
    Join Date
    Jan 2007
    Posts
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Google: "mod_rewrite alternative"


Bookmarks

Posting Permissions

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