WordPress.org

Forums

using mod_rewrite with WP? (15 posts)

  1. Amit Gupta
    Member
    Posted 11 years ago #

    hi
    I have WP 1.0.2 installed on my website. Its a Linux Server with Apache. I want to use mod_rewrite to get SE friendly URLs like http://www.example.com/index/23 instead of http://www.example.com/index.php?id=23
    My server has mod_rewrite. But does WP 1.0.2 support mod_rewrite out of the box? If yes, then how do I enable it? My current WP installation isn't running mod_rewrite.

  2. carthik
    Member
    Posted 11 years ago #

    Under "Options" in the WP admin interface, you will find an option called "Permalink". That will generate rewrite rules based on your preferences.

  3. OperaManiac
    Member
    Posted 11 years ago #

    which u put in ur .htaccess file...

  4. arghnoname
    Member
    Posted 11 years ago #

    I just noticed this with my wp, when you use images, don't use relative directories /images/picture.jpg. Use the full site http://www.mysite.com/images/picture.jpg.
    At least with me anyway, when it was going from the archives with SE friendly URL,s' when I wanted it to go to /image/picture, it was pulling /archive/2004/5/04/image/picture.jpg, which didn't exist

  5. OperaManiac
    Member
    Posted 11 years ago #

    same with ANY relative url u use on the blog page... be it css or a link to any other page on the same site. :)

  6. Amit Gupta
    Member
    Posted 11 years ago #

    So clicking clicking Permalink in the Options of WP-Admin, I get a set of rules that I paste in a .htaccess file & place this .htaccess file in my WP directory. Right guys?
    As for image urls, do I use full urls in the CSS stylesheets too?

  7. carthik
    Member
    Posted 11 years ago #

    Right.
    Yes, full urls everywhere. You will grateful to yourself you used full urls someday, like I was when I moved over to wordpress. :)

  8. Amit Gupta
    Member
    Posted 11 years ago #

    After I upload the .htaccess file to my webserver, I can't see it in the file browser. I'm using CuteFTP Pro 3.1 & am on Windows 2000 Advance Server, while the webserver is Linux.
    So, if I need to edit my .htaccess file in future, how can I download it? Can anyone help?

  9. Matt Mullenweg
    Troublemaker
    Posted 11 years ago #

    Use the template editor.

  10. Amit Gupta
    Member
    Posted 11 years ago #

    how?

  11. Amit Gupta
    Member
    Posted 11 years ago #

    If you mean WP's template editor, then when I enter the file name in it, it says that the file can't be updated b'coz it needs to be writable. I should CHMOD it 766.
    Now how can I CHMOD it when I can't see it in the File Browser of my CuteFTP Pro?

  12. carthik
    Member
    Posted 11 years ago #

    You should CHMOD the files you wish to edit using the template editor to be 766. You can see those files.

  13. Amit Gupta
    Member
    Posted 11 years ago #

    How can I CHMOD the files? I'm saying that CuteFTP Pro 3.1 doesn't show me the .htaccess files in the file browser. So how can I CHMOD a file when I can't see it? I don't have SSH access either.

  14. carthik
    Member
    Posted 11 years ago #

  15. Amit Gupta
    Member
    Posted 11 years ago #

    GEE thanks a lot. And thanks to every one else too. It works alright. The mod_rewrite as well as I can see .htaccess file in the CuteFTP Pro 3.1 file browser.
    The URL of my Blog is http://blog.igeek.info/ if anyone wants to see. :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.