• Hi,
    I’m moving a wp installation to another server and I’m trying to make it accessible through a url such as:
    http://www.domain.com/string
    I’m testing it without https for now, because normally I use varnish, so the ssl certification is not directly installed on the webserver, and I want to know exactly how the server itself reacts.
    This my apache config:

    <VirtualHost *:80>
            ServerName www.domain.com
            ServerAdmin my@email.com
            DocumentRoot /var/www/html/string
    	<Directory /var/www/html/string>
    	AllowOverride all
    	Options -Indexes +FollowSymLinks +MultiViews
    	</Directory>
            ErrorLog ${APACHE_LOG_DIR}/error.log
            CustomLog ${APACHE_LOG_DIR}/access.log combined
    </VirtualHost>

    Here is the .htaccess of the document root:

    <IfModule mod_rewrite.c>
    Options +FollowSymLinks
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule .* /index.php/$0 [PT,L]
    </IfModule>

    As it is, I can access phpmyadmin after changing the alias to /string/phpmyadmin /usr/share/phpmyadmin. So I needed to add the “/string” part. That’s not an issue.
    The problem is that I cannot access wp-admin using the domain.com/string/wp-admin url. It simply ignores the request and leads me back to domain.com/string. I’m not sure exactly what I’m doing wrong.
    From wp-config.php:

    define('WP_HOME','http://www.domain.com/string/');
    define('WP_SITEURL','http://www.domain.com/string/');

    Any ideas?
    Thanks

Viewing 1 replies (of 1 total)
  • Hi,

    Please try domain.com/string/wp-login.php and also just change the URLs to domain.com/string instead of domain.com/string/

    Hopefully, it will lead you to the login page.

    Thanks

Viewing 1 replies (of 1 total)

The topic ‘change base url adding string after /’ is closed to new replies.