Help me for URL Rewrite

Discussion in 'Search Engine Optimization' started by Alam, Sep 1, 2007.

  1. #1
    Alam, Sep 1, 2007 IP
  2. trichnosis

    trichnosis Prominent Member

    Messages:
    13,785
    Likes Received:
    333
    Best Answers:
    0
    Trophy Points:
    300
    #2
    i think you must look dp apache forums.

    there is a mod_rewrite faq on that that forum
     
    trichnosis, Sep 1, 2007 IP
  3. Philopoemen

    Philopoemen Peon

    Messages:
    704
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Well, it seems that you misunderstood the concept of mod_rewrite
    It will not change the links that you have in your pages, it will accept the new links and redirect to the specified link in the background.

    Let me explain.

    If you want to rewrite example.com/index.php?section=title to example.com/title, you write the necesarry 'code' in the .htaccess, AND, besides that, you change your links in your HTML from index.php?blah-blah to example.com/blah-blah, and the mod_rewrite will make sure that everything will work fine.

    P.S. I got a hang of mod_rewrite after a couple of months of trying stuff here and there...
     
    Philopoemen, Sep 1, 2007 IP
  4. Alam

    Alam Active Member

    Messages:
    316
    Likes Received:
    91
    Best Answers:
    0
    Trophy Points:
    68
    #4
    Alam, Sep 1, 2007 IP
  5. Philopoemen

    Philopoemen Peon

    Messages:
    704
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Yes, you will have to use full path to all your images, css files, and images in the css files. Like osdh.biz/images/image.gif
    Every "/" is considered as a subdirectory, so it is looking for images there, and can't find them.
     
    Philopoemen, Sep 2, 2007 IP
  6. aceonline

    aceonline Peon

    Messages:
    420
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #6
    yes as said above you have to put in your files instead of main.css
    add this
    http://www.osdh.biz/main.css
    I think This will fix your problem .
    Regards,
    Ace.
     
    aceonline, Sep 2, 2007 IP
  7. Alam

    Alam Active Member

    Messages:
    316
    Likes Received:
    91
    Best Answers:
    0
    Trophy Points:
    68
    #7
    wow, you guys are too much helpful. :)

    tnx a lot
     
    Alam, Sep 2, 2007 IP