SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Evangelist runeveryday's Avatar
    Join Date
    Jul 2009
    Posts
    437
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    wordpress Url rewrite doesn't work

    on my server i have installed magento,which is in my root directory. then I created a sub-folder named blog in my site's server. access the blog url is:
    Code:

    HTML Code:
    http://example.com/blog or http://example.com/blog/?p=123
    when i checked Post name checkbox item http://www.example.com/blog/index.php/sample-post/ in the Permalink Settings part. when i access post. it shows not found. when i unenabled the url rewrite. when view all the post,all are ok.

    my server supports the url rewrite.then i created .htaccess(644). put it into blog file and put code:

    HTML Code:

    HTML Code:
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /blog
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress
    it still can't work. why?

  2. #2
    SitePoint Zealot nacworld's Avatar
    Join Date
    Aug 2008
    Location
    TEXAS
    Posts
    107
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you using Wordpress or Magento?

    If wordpress you need to go Settings > Permalinks and choose Post Name as common setting then it will work...

  3. #3
    SitePoint Evangelist runeveryday's Avatar
    Join Date
    Jul 2009
    Posts
    437
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    i using both of them. i do it as your told. but it can't work.


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
  •