Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 134772

brianstoiber on "changing Absolute to Relative paths/links"

$
0
0

I have a website (http://example.com) that is currently up. I was designing a new version of the site in a subdirectory (http://example.com/wp) "wp" for wordperess.

All the paths/links are absolute (http://example.com/wp/wp-content/uploads/whatever.jpg)

The site is now done and I am going to just redirect the domain name from http://example.com to point to http://example.com/wp. The links are however all still http://example.com/wp... the way the file directory is set up with DreamHost you:

  1. FTP in and see example.com.
  2. Navigate to example.com and see the old site and files. including /wp/
  3. Navigate to wp/ to get into the new site.

Because the file structure is still example.com/wp/... to get to the files, when I point the domain name over, will it affect all the absolute links? If it does, is there an easy way to change them to relative before I switch them over, and if so, what should it look like (ie wp-content/uploads/...)


Viewing all articles
Browse latest Browse all 134772

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>