I've moved WordPress from hosts to Xampp local hosts.
I corrected the links inside the database. Although the home page is loaded.
But on every link, I'm redirected to the http: // localhost / dashboard page.
I use WordPress 4.9.6, Xampp 3.2.2 and Windows 8.1 64-bit
my .htaccess file
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
please guide me, thanks
For me, changing the .htaccess file as #Ustav suggested did not resolve the issue. After making that change, while I was no longer redirected to the XAMPP dashboard, I was instead redirected to a 404 page from Apache.
What did resolve the issue for me was simply navigating to Settings > Permalinks in the WP admin, scrolling to the bottom, and clicking "Save Changes", an idea I got from this WP forum page. That immediately fixed it, no changes to .htaccess required.
The remote-to-local transfer instructions I followed can be found on this 1&1 Ionos instruction doc
Try this:
Go to htaccess file.
Inside
<IfModule mod_rewrite.c>
...
</IfModule>
Put this code
RewriteRule . FOLDERNAME/index.php [L]
Related
I have migrated my site : http://www.mahodadhiinfra.com/ recently from windows hosting to linux hosting.
After it hosted and configured homepage running properly but unable to access any other page. i can only access page with a extension.
Ex.
http://www.mahodadhiinfra.com/wp-login.php (Working)
http://www.mahodadhiinfra.com/my-account/lost-password/ (Not working)
Initially I thought it might be a .htaccess issue but my .htaccess seems to be ok.
# 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
After that I tried with permalink change. But nothing worked. Hosting provider confirm that all settings are open what a wordpress required, e.g. AllowOverride ALL etc.
Can anyone please help me to get out of the issue?
Just 3 steps can help you:
Delete the .htaccess file
Login in /wp-admin/
Go to Permalink options and click "Save".
I have transferred a wordpress website on AWS (EC2 and RDS-Mysql servers). The DNS has been setup in Route53.
The wordpress files has been located under directory:
/var/www/html
And the mysql database is imported on RDS. The home page looks fine but when I click on the other pages, it gives "404 not found" error. I have modified /etc/httpd/conf/httpd.conf file to allow WordPress to use permalinks:
<Directory "/var/www/html">
AllowOverride All
I have also checked the size of transferred files and they look as same as the main files.
Any help would be appreciated.
I could solve my problem by adding .htaccess file in the directory of my wordpress files.
# 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
http://guiem.info/permalinks-on-wordpress-amazon-ec2/
Try to follow these steps:
In the WordPress dashboard go to Settings > Permalinks
Without changing anything click on the Save button
And then try to click on the inner pages, it should load fine.
Why does this happen? When you change server, the paths and urls are changed. When you save permalink settings then WordPress will update its rewrite rules and so it will work fine.
I have problem with images on my website. I have installed wordpress in blog directory, co I could access my website like mysite.com/blog. I have followed tutorial on this page Giving_WordPress_Its_Own_Directory (Using a pre-existing subdirectory install), to redirect it, so I have changed site address url in settings to mysite.com, add index.php to root and add /blog/wp-blog-header.php in this fileā¦ I also have to update permalinks and htaccess copy to root, with following code
# 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
Now my website is working fine but images are not working. I can see them but after click on them it shows 404 error page. There is /blog/ in image url. If I remove blog from url manually, it shows page with image (lightbox is not working) Could somebody help me how to solve this? thanks
I'd try Better Search Replace plugin to change urls of images in database.
I have moved an Wordpress from one server to another. The address remained the same, so nothing is changed in the URL structure. The steps followed are as described in Codex page.
However when I try to access the admin page (www.mydomain.com/wp-admin) I get a blank page. Also, the same happens to some pages on my site - but not all of them. Some are working some are not.
In my .htaccess I have the usual:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^mysite.com$ [NC]
RewriteRule ^(.*)$ http://www.mysite.com/$1 [R=301,L]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Under wp-admin folder, .htaccess file is empty.
After a lot of testing, I find out that when I access http://mydomain.com/wp-admin (without www) is loading the login page, but after entering the username and password I get another blank page (it basically redirects to www.mydomain.com).
I believe this is not a .htaccess, but something inside Wordpress. I have the correct URL and HOME setup in wp_config (also because the domain did not changed after moving to a different server).
Strange thing is that some pages are working, some don't. What could be the reason?
I found that the reason for this is a blank space left on wp-config.php file, which made WP crash (not sure why other pages were working though...).
I am developing, on my local web server, a simple Word Press blog but I am finding a strange behavior
After that I have post a new article, it appear in homepage but, when I click on its title to open it, appear the following error message:
Not Found
The requested URL /wordpress/archives/56 was not found on this server.
Apache/2.2.22 (Ubuntu) Server at localhost Port 80
I have the same problem also if I try to click on the related category icon of the article or if I click on the "add your comment" icon
If I don't use Permalink seems work fine !!! So the problem is related to the Permalin....
Why? some ideas to solve using Permalink?
As Vickey says above, you need to update your .htaccess file to use permalinks.
If your Wordpress installation is inside a folder called 'wordpress' inside your root folder then it will be similar to this;
# 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