• I am getting a 404 error when trying to install wordpress. I found another post answer that suggested changing the htacces file name which i have done and it solved the problem, but how do i solve the problem caused by changing the file name. I am not able to access the site at the root of my domain with the htaccess file name changed.

    I have installed wordpress twice before but never had this problem?

Viewing 9 replies - 1 through 9 (of 9 total)
  • What’s in the .htaccess file?

    My guess would be that you have a corrupt .htaccess file. Maybe there is a stray control character as can happen when you edit in a word processor like Word instead of in a text editor like Notepad of Textedit, or (if you use a Mac) maybe the file is saved with Mac line endings. I’d try recreating– retyping, not copy/pasting– the file very carefully, or let WP write the file for you if you can.

    Thread Starter chrisharrison81

    (@chrisharrison81)

    its from my storestacker store which is the root of the domain. i have not edited it in any way. it contains exactly as below

    Options +FollowSymlinks
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_URI} ^[^\.]*[^/]$
    RewriteRule (.+) $1/ [R,L]
    RewriteCond %{REQUEST_URI} !^/index\.php|^/admin|^/click\.php|^/templates/|^/install\.php|^/robots\.txt$|^/favicon\.ico|^/sitemap\.xml|^/404\.shtml
    RewriteRule (.+) index.php?req=$1&%{QUERY_STRING}

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule (.*) /404.shtml [L]

    Ouch! This is not just a vanilla WP install. See if this helps.

    Thread Starter chrisharrison81

    (@chrisharrison81)

    Thats a really good vid, Thanks.

    I have added a wp blog to a sub-directory before and did not have any problems. I cannot understand what the problem is or why it is happening

    Can anybody help?

    Were you using storestacker on those other blogs? Looks to me like the storestacker .htaccess file is redirecting requests in a way that WP doesn’t like. to test the theory, I copied your .htaccess into an .htaccess on my devel server and things break. I can’t get to the wp-admin directory at all, for one, and the css doesn’t load. That’s why things don’t work. I’m no .htaccess guru, though. I don’t know how to fix it.

    Thread Starter chrisharrison81

    (@chrisharrison81)

    no, i know what you mean. Tricky. maybe somebody at storestacker can help?

    Cheers

    I think that if you install WP, then install storestacker in a subdirectory you can make it work. That way, storestacker’s .htaccess can be tucked away in the subdirectory where it won’t bother WP. But if somebody with storestacker is willing to help…

    Thread Starter chrisharrison81

    (@chrisharrison81)

    well i have had no reply from ss so i think i might give it a go. Just a bit of a pain cus the ss site is already indexed with google at the root domain name, but it will only be temp set back.

    Thanks for the idea

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘404 error solved by htaccess name change?’ is closed to new replies.