meraj.khattak
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Database repair time errorYou could follow instruction from here to put your site into maintenance mode without a plugin:
https://sivel.net/2009/06/wordpress-maintenance-mode-without-a-plugin/
Forum: Fixing WordPress
In reply to: How to get menus on pages?Do you want to add your menu by going to Dashboard -> Pages -> Add New? This is not supported I believe.
A menu is assigned to specific location in Dashboard -> Appearance -> Menus as per your theme support or you could call it via the following code in your template:
$menu = array( 'theme_location' => 'main_menu', // change this to whatever your theme support 'menu' => 'Your Menu Name', 'container_class' => 'menu' //change this to the css class you are using ); wp_nav_menu( $menu );
Forum: Fixing WordPress
In reply to: Trouble moving WordPress files on cpanelYou need to check two things:
1. The files you uploaded should have right permissions so server could execute them correctly.2. The .htaccess file should be present and should have been uploaded along with other files.
Forum: Fixing WordPress
In reply to: I cant see my pages in data basePosting details of what issue you are facing would be very helpful.
In wp_posts table you see multiple entries of same name because of revisions which WP saves automatically when you are editing a Page/Post.
Forum: Fixing WordPress
In reply to: Old Slugs RemovalSolved. I noted that an .htaccess outside my root folder of WordPress was causing this issue.
What is strange is that the directory in which .htaccess was causing was not even in my DocumentRoot. The structure was as the following:
- /home/mrk/www/ – This was my DocumentRoot in Apache and WP root as well.
- /home/mrk/.htaccess – This was causing issue. I don’t know how that was possible when it was not even defined as DocumentRoot for Apache? Probably as parent directory of DocumentRoot?
Anyway, thanks for all your kind help.
Forum: Fixing WordPress
In reply to: Old Slugs RemovalClearing cache and cooking and then trying again didn’t help. Will look into this more and update.
Forum: Fixing WordPress
In reply to: Old Slugs RemovalThanks Frizax. I have removed old URLs. But it is still accessible via old URLs and it redirects it to new one.
I have confirmed and don’t have any rules defined in .htaccess for this.
Forum: Fixing WordPress
In reply to: HTTP Error 500 (Internal Server Error) after editing codeCan you share your Apache error_log?
This could be a problem at your host also as you are not even able to connect to your server via FillZilla. Normally adding the above code shouldn’t throw the 500 error unless you are making changes to .htaccess etc.
Forum: Fixing WordPress
In reply to: Old Slugs RemovalI have deleted the all the old slugs. New slugs are in place. But still it is redirecting to the these old URLS.
Is there any other place where it could be checked for redirection?