• Resolved upnorthal

    (@upnorthal)


    Hi

    I have carried out a new install of WordPress. I’ve created a seperate directory called \blog that hangs of www root :-
    In \shop is my eccomerce store.

    \root\shop
    \blog

    .htaccess in my www root has a 301 redirect configured. this means that any request for my domain http://www.domain.co.uk gets automatically redirected to my store http://www.domain.co.uk/shop

    Now, I want to run my WordPress with the SEO friendly permalinks.
    Running them, causes the 404 error page to display.

    From searching other threads, I have created a .htaccess file in the \blog folder with the following in:-

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /blog/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    Unfortunatley, this doesn’t work. I still get 404’s. Do I need to do something with .htaccess in root?
    (I have a feeling everything is getting overridden by this)

    Thanks

    Al

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter upnorthal

    (@upnorthal)

    sorry, the diagram above didn’t post correctly. \blog hangs off the www root (as does \shop)

    Thread Starter upnorthal

    (@upnorthal)

    I went into admin tools, then settings, permalinks.

    I pressed the save button again.

    The perma links are now working! No idea why. I’m sure I pressed save before!

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    try this

    if you put the htaccess file in the blogs folder, then you need to add the rewrite base as / because the rewriting will start from where the file is.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘.htaccess and PermaLinks’ is closed to new replies.