Title: change base url adding string after /
Last modified: September 29, 2018

---

# change base url adding string after /

 *  [quas](https://wordpress.org/support/users/quas/)
 * (@quas)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/change-base-url-adding-string-after/)
 * 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](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)

 *  [Prashant Singh](https://wordpress.org/support/users/prashantvatsh/)
 * (@prashantvatsh)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/change-base-url-adding-string-after/#post-10735482)
 * 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
    -  This reply was modified 7 years, 8 months ago by [Prashant Singh](https://wordpress.org/support/users/prashantvatsh/).

Viewing 1 replies (of 1 total)

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Prashant Singh](https://wordpress.org/support/users/prashantvatsh/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/change-base-url-adding-string-after/#post-10735482)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
