• Resolved [email protected]

    (@janjsphotofxcom)


    Before I get myself into trouble here, I want to know how this is done. Currently the site is up and running as https://domain.com/wordpress/

    On C-panel I have a redirect to go to this site, as compared to the original site https://domain.com

    I want to eliminate the /wordpress/ in the names. I think this can be done via the DNS numbers being redirected, but I don’t know how. The research I see on-line has conflicting and outdated advice, and none of it specifically applies to WP. Can anyone give me some guidance?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Usually you just take out the /wordpress/ in the settings, then with an ftp or however you like you remove everything from the wordpress folder. Else you can create a .htaccess file to change the uri.

    Thread Starter [email protected]

    (@janjsphotofxcom)

    If I understand you correctly, in the 301 redirect settings I would take out the /wordpress/ – but how does it go to the right place then? Without the /wordpress/ it would just go back to the old index.com (which I’m leaving up until I’m sure this is working right).

    When you say remove everything from the wordpress folder, do you mean move it into the main public.html folder on the server?

    So you want https://domain.com/wordpress/ to become just https://domain.com, but you don’t want to physically move the contents into https://domain.com ?

    If you do physically move the contents of wordpress to the main domain, then you would change your site address and wordpress address in your general settings, then physically move the contents over.

    If you don’t have a /wordpress/ foldier, then it could be that this is in your permalink structure, which would just be a case of removing it.

    If your looking to create a rewrite rule to remove /wordpress/ you’d put in your htaccess file something like:

    RewriteRule ^wordpress/(.+)$ https://www.yourblog.com/$1 [R=301,L] (not tested)

    Thread Starter [email protected]

    (@janjsphotofxcom)

    It’s not that I don’t want to move the contents of the WordPress folder to the main domain, I just want to know if I’m doing it right and what problems will occur BEFORE i mess things up.

    If I move all the files from the WP folder to the main domain folder, what will happen to all my pretty permalinks, will they automatically update to the new location?

    See Giving_WordPress_Its_Own_Directory.

    All permalinks will update automatically.

    Thread Starter [email protected]

    (@janjsphotofxcom)

    that’s what I was looking for, thanks! But I will try it in the morning when my brain is fresh.

    Thread Starter [email protected]

    (@janjsphotofxcom)

    I finally got back to this, and after having the hosting site update Cpanel, it worked! Thanks for this link, Esmi.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘redirecting to https://domain.com without /wordpress/’ is closed to new replies.