I could create pages in WordPress, but whenever I take that corresponding URL
eg:BaseUrl/page-slug/
the page is not loading, also showing a 404 error. I set the permalink
hostname/%postname%/
I have used the same theme in my local it was working fine but in the server, it behaves like this. Please anyone can help me?
Would you please save permalin?
Step 1 : Goto wp-admin->setting->permalinks
Steps 2 : After save changes
This usually happens if something goes wrong with rewrite rules or your .htaccess file gets deleted. You should fix your permalink settings.
Go to Settings> Permalinks and click the Save Changes button. That should solve your problem!
Related
My Site is Working well with url
www.softsystems.org/site&name
I wanted to make my site URL
www.softsystems.org/sitename
For this I cahnge Wordpress Directory Name site&name to sitename
but the site does not work,
I tried 2,3 times,Updated db Links,
I installed Fresh Wordpress, but no Success after 8-10 hours,
Please Guide me in this Regard so that I can get rid of this problem,
I would try these 2 options :
1 - Go into Settings > Readings, set the Front page to a another page then save. After, put back the Front page to the correct page and save again.
2 - I would do the same thing with the Permalinks. Go into Settings > Permalinks and change it to something else and save. After put it back to what it was and save again.
This is what fixed it for me when I got the same problem.
Any ideas on how to rewrite my admin URLS would greatly be appreciated.
I have created some menus using functions.php and they are working properly but I need a way that I can use on my .htacess to re-write my code.
The original URL is displaying like this:
http://www.website.com/wp-admin/admin.php?page=for_buyers
I want it to display like this:
http://www.website.com/wp-admin/menu-sample/submenu-sample/
Thank you!
I don't know how many pages you have to rewrite the urls for but you could do 301 redirects which be easy for a few pages but a bit dirty.. Since it sounds like you already have the new links set-up
Otherwise you need to look through their php code..
http://www.website.com/wp-admin/admin.php?page=for_buyers
Their passing info through the url to direct the user to the correct page.. So they clicked this link, and they set it up so that it goes to page=for_buyers. I would bet this code is in the admin.php, but you would most likely need to edit other php files that get redirected to this admin.php file..
I might be missing your question completely.. Let me know..
RewriteEngine on
redirect 301 /category/product-line/samplepage.htm http://websitename.com/newpage.htm
so the page you are redirecting, just take awaY the domain.com part and start with the slash, then a space, then the full html path of the page you are redirecting to.. start with one and give it a min and see if it works.. then go from there.. the htaccess file should be in your main directory.. wordpress should already have one created and you just add to the end of it..
Good luck -Pat
Go to your settings > permalinks and select Post name
Thanks.
Ok I found a previous posting but there was no answer to it. Here is the posting I am having a similar issue : Why is my HREF address being changed
I am trying to set up a login page and I'm trying to link to my local host for now so I can test it.
the path to my connection file should be as such
../Connections/my_Localhost_test.php
but for some reason when the page is loaded it is showing this as the path name and the page name as this
C://..full path... /TMP4z9j7qnj5c.php
I don't understand why it would do that instead of throwing an error about not connecting to the database. I have tested the database connection and it works fine.
I would put this on a jsfiddle but I have multiple pages and I'm not quite sure what would be causing the issue so that I can add it there.
Not sure if this is related but previously I was also having an issue where when I click on a link that is a relative path it was changing the link in relation to the last page not the link that I clicked on, so something like this:
link 1
link 2
so if I'm on the page from link 1 and click on link 2 it was showing the page as not there because the url was redirecting to the main folder and then not going into the about folder and searching for the page in there.
Any ideas guys?
You can Define base url. Try this code :
defined('ROOT_PATH')
|| define('ROOT_PATH',"http://".$_SERVER['HTTP_HOST'].substr($_SERVER ["SCRIPT_NAME"],0, strlen($_SERVER ["SCRIPT_NAME"])-9));
And print ROOT_PATH before your href.
In case anyone else was wondering I got a response from Adobe on this issue. I didn't realize that Dreamweaver had this option. Here is their response.
That's a temporary page. It's created specifically for previewing.
You "should" be able to turn it off in the preferences...
Edit > Preferences >select Preview In Browser > uncheck the "Preview using temporary file" checkbox
EDIT: OOps, forgot the Preview In Browser selection.
This is the website url www.iaspirant.com .
So this will redirect to 404 page. Now the strange thing is when I do a login from wordpress wp-admin and then try to open the website then homepage gets load successfully.
So this happens only when a user is not admin.
Now in order to resolve that I googled lot and tried various approach but with no success.
tried to add 301 redirection in 404 page so that it will redirect to home page but this creates a loop
Try to delete .htaccess file but no difference
Try to change the theme to ensure whether its error in code but no success
If any one can suggest me anything then it will great help.
Try goto to /wp-admin/options-reading.php
And setup Front page displays as static page or post.
Do you have installed any maintenance plugin?
Did you check the permissions? try a permissions plugin
Go to settings->reading and see if you have set Front page displays your latests posts and not a static page
You just made a mistake in Param links:
Change your home param link to http://iaspirant.com/?page_id=428 and
then it would definitely it will wok.
Check also your static page in customization
go to apperence-->themes-->customization and set static page as your home page.
I have moved a wordpress site from /wordpress/ to / and it has worked except for the header navigation bar.
http://vashonschoolsfoundation.org/thank-you/annual-report/
If you click on of the top links (not one of the dropdown links), it takes you to a /wordpress/ url.
IE: if you click Thank you, it should take you here,
http://vashonschoolsfoundation.org/thank-you/annual-report/
but instead it takes you here:
http://vashonschoolsfoundation.org/wordpress/thank-you/annual-report/
The correct url (without /wordpress) works, but it isn't the one getting linked to.
All the submenu links work fine.
How can I fix this?
Note: when you hover over the top links, they say they will take you to the right links (in the url preview browser feature in most browsers), but they take you to the wrong (/wordpress) one.
I see that only two top navigation links redirects to /wordpress/ ('Thank You' and 'Contribute'). 'About' and 'Contact us' works correctly.
When clicking on 'Contribute' server sends Location header - Location:http://vashonschoolsfoundation.org/wordpress/contribute/give-today/
This header is set somewhere in you code or options that are saved in database. I don't think that the problem in database, because in this case all links will be broken.
Try to disable all plugins, switch to default theme and check the links.
Have you changed the "site address" in your Wordpress general settings?
Did you just move the files one directory up? Because there is more to it than just that. I've used these detailed instructions a few times to move Wordpress installations.
Dump your wordpress DB and then search replace old URL from the dump and then drop your current db and then import the corrected one.
Do you still have an wordpress under /wordpress/ folder?
All you need to do is make two changes in your database table wp_options
All you have to do is change the option_value field to the correct URL for the records with option_name=’siteurl‘ or option_name=’home‘.
Read the instructions in the Codex.