We help IT Professionals succeed at work.

wordpress htaccess problem

Hiroyuki Tamura
on
Medium Priority
453 Views
Last Modified: 2012-06-21
i get error message with this htaccess, can't read index.php
do you know what's wrong with it?


# Copy and paste the following code into the .htaccess file
# in the public_html folder of your hosting account
# make the changes to the file according to the instructions.

# Do not change this line -
RewriteEngine on

# Change yourdomain.com to be your main domain.
RewriteCond %{HTTP_HOST} ^(www.)?crea-creations.com$

# Change 'subfolder' to be the folder you will use for your main domain.
RewriteCond %{REQUEST_URI} !^/wordpress/

# Don't change this line.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Change 'subfolder' to be the folder you will use for your main domain.
RewriteRule ^(.*)$ /wordpress/$1

# Change yourdomain.com to be your main domain again.
# Change 'subfolder' to be the folder you will use for your main domain
# followed by / then the main file for your site, index.php, index.html, etc.
RewriteCond %{HTTP_HOST} ^(www.)?crea-creations.com$
RewriteRule ^(/)?$ wordpress/index.php [L]

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

# END WordPress

Open in new window

Comment
Watch Question

Hiroyuki TamuraField Engineer

Author

Commented:
this was original
# Copy and paste the following code into the .htaccess file
# in the public_html folder of your hosting account
# make the changes to the file according to the instructions.

# Do not change this line -
RewriteEngine on

# Change yourdomain.com to be your main domain.
RewriteCond %{HTTP_HOST} ^(www.)?crea-creations.com$

# Change 'subfolder' to be the folder you will use for your main domain.
RewriteCond %{REQUEST_URI} !^/wordpress/

# Don't change this line.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Change 'subfolder' to be the folder you will use for your main domain.
RewriteRule ^(.*)$ /wordpress/$1

# Change yourdomain.com to be your main domain again.
# Change 'subfolder' to be the folder you will use for your main domain
# followed by / then the main file for your site, index.php, index.html, etc.
RewriteCond %{HTTP_HOST} ^(www.)?crea-creations.com$
RewriteRule ^(/)?$ wordpress/index.php [L]


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

# END WordPress

Open in new window

Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Hiroyuki TamuraField Engineer

Author

Commented:
i get somehow this error message

http://crea-creations.com/wordpress/index.php

404 Not Found
The server can not find the requested page:

69.175.91.26/~crea01/wordpress/wordpress/index.php (port 80)
Please forward this error screen to 69.175.91.26's WebMaster.
Hiroyuki TamuraField Engineer

Author

Commented:
why do i get this?
wordpress/wordpress/index.php
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Hiroyuki TamuraField Engineer

Author

Commented:
still same result. getting this

404 Not Found
The server can not find the requested page:

69.175.91.26/~crea01/wordpress/wordpress/index.php (port 80)
Please forward this error screen to 69.175.91.26's WebMaster.
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Hiroyuki TamuraField Engineer

Author

Commented:
mhh still same.
Hiroyuki TamuraField Engineer

Author

Commented:
the page contain this;

Error 404 - Not Found

We're very sorry, but that page doesn't exist or has been moved.
Please make sure you have the right URL.
Hiroyuki TamuraField Engineer

Author

Commented:
i think .htaccess file is not working. do you know how to diagnose?
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.