I recently migrated my site to a new domain and a sub dir under that domain. quivinat.com/quv1anTemp/ My Wordpress 404 page is going to an old page seems to be from where my site use to be because it is pulling in the old header. I did a test and I modified the 404.php but it did not have any effect on the 404 landing page.
Not sure what is going on.
Any suggestions.
Try typing in "quivinat.com/quv1antemp/ and you will notice that the header is says HotFoot. This is my old header.
.htaccess file is as follows
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /quv1anTemp/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /quv1anTemp/index.php
</IfModule>
# END WordPress
In the dashboard under General > Settings the Wordpress URL and Site Address must be changed to use the new domain.
Related
I am developing a website using WordPress. When you go to pages, it displays a index.php in the URL before the page name.
For example:
http://hci2018.bcs.org/index.php/register/
But it should be
http://hci2018.bcs.org/register/
How do I remove the index.php?
Please change the Permalinks of the site:
Go to Setting in the admin
and click on the permalink
Change the permalink to post name
You can get the exact URL as you want.
I have had the same problem. After enabling permalink to post name, all my pages (other than the homepage) came up as not found (404). This happened because the .htaccess file couldn't be modified by Wordpress.
I had to manually edit/modify the .htaccess file from the root folder of the website with the following:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
After I did this, everything worked as before. And no more index.php before the page name. Problem solved!
I'm a noob with wordpress and I'm creating a website with it. The thing is I've changed the permalinks to be the name of the entry/page. I've created 2 pages so far, and when I view my website and click on the links to those pages, the url does change to wordpress/page1 or wordpress/page2, but the page shown is always the main page.
I'm working with wamp for windows, so I've been doing some research. This is what I've found so far:
My .htaccess is like this:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
</IfModule>
# END WordPress
I've also changed the mod_rewrite inside apache httpd.conf removing the # and I've saved changes in permalinks. Nothing is working.
I guess you have to make a change in your .htaccess file from:
RewriteBase /
to the following:
RewriteBase /wordpress/
Fixed.
It was not recognizing my single.php
I have a php based site with wordpress installed in a subdirectory.
The main php site has urls in the following form
http://www.smokescreencreative.co.uk/nameofpage
which are rewritten using htaccess so they actually access pages like so:
http://www.smokescreencreative.co.uk/index.php?pid=$1
This all works as needed. My problem is with the /blog subdirectory. When in the blog part of the site trying to click on a link back to the main part of the site actually directs to
http://www.smokescreencreative.co.uk/blog/nameofpage
instead of
http://www.smokescreencreative.co.uk/nameofpage
as required and I am getting a 404 error because there is nothing there. I think this must be down to my htaccess files but I can't work out how to make it so the links to the main php page take the form I want but the blog post etc stay in the /blog/nameofpage format.
I did manage to get it so /blog/nameofpage was bringing in the correct written content for the root pages but there was no styling or images and the url was still /blog/nameofpage and I would like it to be just /nameofpage if possible.
I've posted the htaccess code for the root directory and blog subdirectories below. any help with this would be much appreciated.
Thanks in advance
main root htaccess code: (works for the links in the root part of the site)
AddType application/x-httpd-php .php .html .htm
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)$ /index.php?pid=$1 [L]
htaccess code for the wordpress subdirectory
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>
# END WordPress
I am setting up a website inside a wordpress installation folder.
So it's like:
http://mysite.com/newsite/
Primarily, http://mysite.com is a wordpress installation, now I want to set up another site*(not a wordpress website)* on that directory which is newsite,
So basically it looks like this mysite/newsite/
When I go to that link, it changes the URL and leads me to a page of mysite page. I think maybe because of the .htaccess of the wordpress installation.
How can I access on my newly setup website without being redirecting me to http://mysite.com page?
PS:
Wordpress .htaccess configuration:
# 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
Your help will be appreciated!
I'm having an issue after moving to a new server where my WordPress htaccess URL rewrites are redirecting ALL links back to the homepage.
Here is my current 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
On the old server I used this htaccess file with zero problems - however the new server I have the problem where ANY URL is redirecting to homepage. If I type the "unwritten" URL in (with the query strings) the page comes up fine.
Two ideas:
http://wordpress.org/support/topic/all-permalinks-redirect-to-homepage-1
Deactivate all plugins an reactivate one by one.
http://wordpress.org/support/topic/blog-posts-redirecting-to-home-page
Click the save button in the permalinks panel.