Wordpress SEO Features - wordpress

I am using apache server for work with wordpress...In my application; retrieving some values from user created table and displaying it.
when click on a product description which shows the full details of that product.ie,
http://localhost/demotile/?productid=59961
this url am following for get the details.here how can i rewrite the url as http://localhost/demotile/............please help me

If you login to wordpress dashboard, goto
Settings->Permalink
Change "Common settings" from default, select custom and input
/%postname%/
click "Save Changes"
if you get a message at the bottom of the page regarding your .htaccess file and not having permissions, you may have to create this file yourself.
open a new text file and copy/paste the info at the bottom of the screen, or copy this..
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
save this as ".htacess" {No filename - Just a Dot}
do this by saving the file with a name, then go to that file and hit F2 to rename,
delete the filename just before the {dot} and change any file extention at the end:
ie: "yourfile.txt" should then become ".htaccess"
upload this into the root of your website hosting folder.
ie: public_html
or www
or htmldocs
As long as mod re-write is enabled on your host this will produce the following url
http://yourblog.com/your_post_title_or_product
If you are using a custom Wordpress plugin then you may have to check see which permalink structure is in use...
to do this use the..
if ( get_option('permalink_structure') != '' ) { echo 'permalinks enabled' }
you may have to look into using htaccess to generate your nice urls..
perishablepress.com

Related

How to Fix WordPress Posts Returning 404 Error?

using cpanel.
I have tried this:
Go to Settings » Permalinks, and simply click on Save Changes button.
changing my .htaccess to 666
> # 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
It's still not working.
Login to your server using FTP, and modify the .htaccess file which is located in the same location where folders like /wp-content/ and /wp-includes/ are located.
The easiest thing you can do is to temporarily make the file writeable by changing the permissions to 666. Then repeat the original solution.
Don’t forget to change the permissions back to 660. You can also manually add this code in your .htaccess file.
Case 2 :
Login to your server using FTP, take backup of .htaccess and remove the .htaccess file or you can rename htaccess.
Login to admin dashboard and update permalinks.
How to update permalinks?
Permalinks require mod_rewrite on webserver and should work after you click Save button on Settings > Permalinks screen from WP admin dashboard.
Due to various plugins or updates, the permalinks structure can sometimes get broken and 404 pages are shown on previously working URLs. You can Save permalinks again from backend.
There's also an automated fix by adding this code to index.php :
if (is_404())
{
global $wp_query;
$page_slug = $wp_query->query_vars['name'];
if ($page_slug)
{
$page = get_page_by_path($page_slug);
if ($page) $wp_rewrite->flush_rules(true);
}
}

wordpress after migrate cannot find pages

I try to migrate my wordpress to new domain.(wordpres version 4.9.7)
The index.page is working, but other pages defined in wp_posts table not working properly.
like:
https://mysite.amazonaws.com/?page_id=622
I got 404 not find error.
I use apache2 with configuration:
<Directory /home/admin/www/html>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
The .htaccess file is:
# 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
the page editor part do not present the review page properly.
Anyone know where is the problem and how to fix it?
find the wp_options table, edit siteurl and home entries with the new url.
You can try in following order
Set the permalink to default(Plain ?p=ID) from wp-admin login page (http(s)://site.name/wp-admin/options-permalink.php)
If this works, then set the permalink to your desired format and try again.
Try disabling plugins.
If you domain is changed then you have to update the new website name in wp_options table. Refer to https://codex.wordpress.org/Changing_The_Site_URL
Refresh permalink fist after that.
Go to the WordPress backend where you have all pages and data from there you go inside "tool menu " and import all page and content.
After that
Go to another website where you want to migration
and export file which you import from the first WordPress backend
1st methord:
Go to file manager and you can remove the .htaccess file and again refresh the site URL.
2nd method:
Go to settings->permalinks and click the Save button to rewrite flush. And then hard reload the browser. It'll work hopefully.
3rd method:
Go to settings->permalinks edit your permalinks settings as "Custom Structure"
and edit like this /index.php/%postname%/

Wordpress permalinks does not work on server

I have uploaded WordPress website to a new server which is working fine. But Permalinks settings are not working. All other pages returning me 404 error.
and below in my .htaccess file
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
please check the apache module rewrite.
in a root wordpress folder insert into index.php phpinfo();
and find this string mod_rewrite. If it`s not, tell it your hoster support
To fix this error one can also try this method:
Open phpmyadmin > wordpress database > wp_options table
Here check first two fields and update option_value with correct WordPress location. After that reload the permalink, hopefully the error might gone
Go to "wp-admin", open settings->permalinks and update the permalink settings, it will update the .htaccess file on your server. Hard refresh your site, now all the links will be work perfectly.
there's a one tiny trick to update all links if you can access admin .
you just go to permalinks options from settings page and save permalinks to default and after saving it you may change again and update. This will work in most cases for me either its SSL based issue or urls mismatch. don't forget to view .htaccess file if you have old server and having multiple rewrites.

Wordpress 3.4.2 website internal server error 500 but admin panel is working fine

I have just published my site from localhost to online server and there I am experiencing with an internal server error 500 when I hit my website URL http://www.playinkstudio.com
but the admin panel http://www.playinkstudio.com/wp-admin is just working fine.
I have read articles over the internet and checked the .htaccess file which is not there in the root directory.
I have changed the theme to default but nothing happened.
Then I had deactivated the plugins but does not worked.
Copied the refresh files but useless.
Any Idea ?
Did you updated the site and home url's??
There are two places you need to update your WordPress URL when you plan on changing it. They are both located under the General > Settings SubPanel. Update the “WordPress address (URL)” and “Blog address (URL)” values to the new URL for your website.
check the htaccess whether it has correct path
if you have just copy that htaccess there need to be correct the path
Update
may this could help you
[link]http://wordpress.org/support/topic/500-internal-server-error-24[/link]
if htaccess is not there create a htaccess file using a text editer having the following code and upload it into wordpress directory.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

Problem with Wordpress permalinks and mod_rewriter

first off...thank you so much for your time.
I was referred to you guys and heard here's the best place to find a solution.
Ok...so here's the problem.
My old programmer set up the wordpress permalinks to be dynamic, but we all know that they are the worst to pull in traffic from search engines (specially google).
So I need an expert to set it to custom structure, which will show the words on the title on the URL or "URL friendly links" if you may.
I have some knowledge of computers/programming myself and so I tried to log in on our site's wordpress admin page, and change the permalinks to "custom structure": /%category%/%postname%/
Then also add the word : "categories" on the "category base" and "tag" on "tag base".
What happens however is that when we change that the url links are successfully changed, however...evertime you click on a category link, it takes you back to the main page of the site (instead of the category you chose). That also happens when you click on the pages menu on the site (at the bottom of the pages. ex: 1,2,3,4,5...) it doesn't take you to those pages instead, back to the main pages.
I think it's something that was done to the theme of the actual wodrpress, instead of the FTP, etc...
It might be something simple and fast, but I just can't seem to do it myself.
Edited to add:
By the way...forgot to mention. I already added this to my htaccess. file
RewriteEngine on
ErrorDocument 404 /404.shtml
# BEGIN WordPress
# END WordPress
RewriteCond %{HTTP_HOST} ^thehypebr.uol.virgula.com.br$ [OR]
RewriteCond %{HTTP_HOST} ^www.thehypebr.uol.virgula.com.br$
RewriteRule ^/?$ "http\:\/\/thehypebr\.com" [R=301,L]
then i deleted it all and only have:
# BEGIN WordPress
# END WordPress
Looks like the rewrite rules necessary for pretty urls were not added to your .htaccess files like they were supposed to (as you can see, the wordpress part is empty but it should not be).
Maybe the permissions on .htaccess were too tight. Try setting the permissions on your .htaccess file to be world-writable. Then switch back to dynamic urls, then back to custom structure. Theoretically, if permissions were the problem, wordpress will fill in the rules now. And then you can set the permissions on .htaccess back to normal.
When you log into the backend of Wordpress and go to your permalinks section try hitting the save button again. Once the page refreshes saying it saved it, scroll to the bottom of the page and there should be a paragraph telling you what the .htaccess file should have in it. ( It is usally a grey or yellow background paragraph ) Copy that and paste it into your .htaccess file instead of what you have now. This should help add the correct rules.
It usually looks like this:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

Resources