PDA

View Full Version : Uppercase URLs to Lowercase



gkiger
10-21-2009, 04:22 PM
Hi al. :) I'm a bit of a newbie, so this may be a simple question, but I can't figure it out.

I installed a wordpress blog with capital letters in the URL (ie, www.mydomain.com/WordPress). I would like people to be able to type www.mydomain.com/wordpress to end up in the right place.

What is the best way to do this? Can I rename it without breaking anything? Or is there some setting somewhere I can add that will make it see these two things as the same?

Please give very clear instructions; I learn quickly but I've been at this less than 12 hours now. :rolleyes:

djmatt
10-21-2009, 09:38 PM
As far as the internet is concerned, "/WordPress" and "/wordpress" are 2 completely different folders.
There is some MOD_REWRITE / .htaccess you can probably use, but someone else will have to walk you through that.

One way would be to create the second folder /wordpress and put as your index.html page a simple redirect to your /WordPress folder

<html>
<head>
<META HTTP-EQUIV="refresh" content="0;URL=http://www.yourdomain.com/WordPress">
</head>
<body></body>
</html>

Which is basically what the MOD_REWRITE will do without creating the extra page.

bh_WP_fan
10-22-2009, 10:24 PM
If it is recently installed, to make it easy for all future access, it'd probably be best to just uninstall and reinstall it again, but this time to the right directory, or try renaming your WordPress directory to wordpress, then update the database to use wordpress, instead of WordPress. The following link will show you how to do that using phpmyadmin from the cPanel: http://www.tamba2.org.uk/wordpress/site-url/

farcaster
10-23-2009, 12:33 AM
or try renaming your WordPress directory to WordPress, then update the database to use wordpress, instead of WordPress.

typo??? Should read...

or try renaming your WordPress directory to wordpress, then update the database to use wordpress, instead of WordPress.

Or am I getting a bit dyslexic over this one? :confused:

bh_WP_fan
10-23-2009, 08:23 AM
typo??? Should read...

or try renaming your WordPress directory to wordpress, then update the database to use wordpress, instead of WordPress.

Or am I getting a bit dyslexic over this one? :confused:

Nope, you're right. It was a complete typo. I edited it to make it happy now. :D

EricJ
10-23-2009, 11:20 AM
try renaming your WordPress directory to wordpress, then update the database to use wordpress, instead of WordPress.

Once you've renamed your directory it is imperative that you update your database.. otherwise none of your css will work, which will make things look like.... well... crap. (no colors, no pics, no formatting, just text and blue links).

So After you've changed your folder name:
1. go to cPanel -> PHPMyAdmin -> (Your_WPDatabase).
2. Click the browse button on wp_options.
3. OptionID #1 should be named siteurl. we need to edit this. Click the edit button.
4. This should currently read, http://www.examplesite.com/WordPress just change WordPress to wordpress.
5. Click Go
6. Click the > button go over one page.
7. Make the same change as before to OptionID #39 which is named home

gkiger
10-23-2009, 04:21 PM
Thanks!

I tried the PHP (better) solution, but it broke all my internal links (post categories and so on).

Rather than try to find every instance in the database and risk messing something up, I just put it back and made the basic redirect page that djmatt suggested. Worked like a charm.

felgall
10-23-2009, 05:26 PM
Rather than try to find every instance in the database and risk messing something up, I just put it back and made the basic redirect page that djmatt suggested. Worked like a charm.

But that only redirects one page - what about all the other pages on your site?