Reputation: 666
I'm Dev. WordPress site but this added // into URL.
I don't know how to fix it.
Upvotes: 1
Views: 5725
Reputation: 4880
Add these two lines to your wp-config.php
, where "example.com" is the correct location of your site.
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
Add these two lines to your functions.php
.
update_option( 'siteurl', 'http://example.com' );
update_option( 'home', 'http://example.com' );
Note: Both settings should include the
http://
part and should not have a slash"/"
at the end.
Upvotes: 2
Reputation: 56
The list of things to check:
Upvotes: 0
Reputation: 2108
Check your configurations in WP Backend Settings->General, or maybe you've defined a path somewhere in your wp-config file
Edited
try adding define('WP_SITEURL', 'http://your-url.com/'); in wp-config
if your using an apache try to add an .htaccess configuration
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteRule ^post/([0-9]+)?/?([0-9]+)?/?$ /index.php?p=$1&page=$2 [QSA]
refer to this article link
Upvotes: 1
Reputation: 1
check base url in wordpress config, remove slash after base url
eg. base_url/ change to base_url
Upvotes: 0