WordPress.org

Ready to get started?Download WordPress

Forums

How to upload my wordpress website developed locally to server ? (6 posts)

  1. oaattia
    Member
    Posted 1 year ago #

    hi , i would like to ask question .. i have wordpress website at the following local path C:\wamp\www\wordpress and i want to upload it to the my online server and put it in directory called "wordpress" (public_html/wordpress) ...

    i want my website to go directly to the following link
    ( http://example.com ) .. i made.htaccess file in the root of my public_html folder so when i type ( http://example.com ) it go to ( http://example.com/wordpress ) :

    # WordPress htaccess file to make it point to the directory
    # BEGIN WordPress
    
    <IfModule mod_rewrite.c>
    RewriteEngine On
    
    #Change the following directory ( wordpress ) to make it point to the right directory
    RewriteBase /wordpress/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    
    #Change the following directory ( wordpress ) to make it point to the right directory
    RewriteRule . /wordpress/index.php [L]
    </IfModule>
    
    # END WordPress

    the Problem here that all my links go to ( http://example.com/wordpress )

    how can i fix that ?

  2. govpatel
    Member
    Posted 1 year ago #

    Use wordpress from directory

    http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory#Using_a_pre-existing_subdirectory_install

    No need to make change in .htaccess to redirect.

  3. oaattia
    Member
    Posted 1 year ago #

    But the problem when i click on any page .. i refer to ( http://example/wordpress/post ) not to ( http://example.com/post )

  4. govpatel
    Member
    Posted 1 year ago #

    Once you follow instruction from the link I posted and reset your permalinks they will be http://example.com/post

  5. oaattia
    Member
    Posted 1 year ago #

    OK thanks tried that and worked fine ..

  6. govpatel
    Member
    Posted 1 year ago #

    You are welcome

Topic Closed

This topic has been closed to new replies.

About this Topic