• Hello everybody

    Because we want to launch the website, I had to change the site url from devdom.com to livedom.com, the start page loads fine, but I can’t load other pages, unless I deactivate pretty url/permalink settings! It used to work fine, before I changed the site url. If I use any permalink setting, the server will throw me a 404 not found message.

    What I did:
    – changing the DOMAIN_CURRENT_SITE property in wp-config.php
    – changing the WP_HOME and WP_SITEURL using the wp-config.php (I checked it at the db, the values were updated properly)
    – running the db search replace script (see https://interconnectit.com/products/search-and-replace-for-wordpress-databases/) which worked fine

    the content of my .htaccess is:

    # WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    # Media Library
    php_value upload_max_filesize 64M
    php_value post_max_size 64M
    php_value max_execution_time 300
    php_value max_input_time 300
    # Disallow access to important files
    <FilesMatch "(^\.|wp-config\.php|xmlrpc\.php|(?<!robots)\.txt|(liesmich|readme)\.*)">
    Order deny,allow
    Deny from all
    </FilesMatch>
    # Prevent Directory Listings
    Options -Indexes

    I’m using apache on an ubuntu server.

    Hope sb of you guys can help me, would appreciated it.

    Thank you,

    wpdau

Viewing 1 replies (of 1 total)
  • First thing I would do is regenerate all permalinks by selecting ‘default’, then save changes, then going back to ‘post name’ or whatever you had it at before.

    If that doesnt work then time to delve into the .htaccess file.

    The other thing worth ruling out it to do a full clear of all browsing data as a redirect rule may being cached in your browser. I have had nightmares with this in the past myself…

Viewing 1 replies (of 1 total)
  • The topic ‘url rewrite not working after changing site url’ is closed to new replies.