Forums

[resolved] removing index.php from URLs (4 posts)

  1. outofbounds
    Member
    Posted 5 years ago #

    hello!

    I finally got my local version of wordpress uploaded to a remote server and, i think, everything is working. however, i would like help with the following:

    (1)for my site pages, all my urls are structured as follows: http://mydomainname.com/index.php/category/title/. for posts its a similar thing:

    http://mydomainname.com/index.php/2006/10/18/sample-post/

    basically, this is the "date and name based" permalink option. how do i get rid of the index.php portion of both of the above URLs? the rest of the url is fine..

    (2) my home page is showing for http://mydomain.com and when i type in http://www.mydomain.com, it shows up as well. are there any issues with not having the www subdomain included in the URL's?

    thanks

  2. upekshapriya
    Member
    Posted 5 years ago #

    You can find out how to do (1) in the WordPress codex

    http://codex.wordpress.org/Using_Permalinks#Creating_Rewrite_Rules_.28.htaccess.29

    Basically you need to make .htaccess rewriteable and go to /wp-admin/options-permalink.php on your site to set the options, which I guess you've done.

    For (2) you can make sure that you restrict the site to either use www or not with Enforce www. Preference plugin

    http://txfx.net/code/wordpress/enforce-www-preference/

  3. outofbounds
    Member
    Posted 5 years ago #

    thanks for the reply. i finally got it to work... the problem was the httpd.conf file on my local box/apache..

    i changed a line to the following:

    <Directory />
    Options FollowSymLinks
    AllowOverride All
    </Directory>

    the allowoverride was set to none....

  4. spencerp
    Member
    Posted 5 years ago #

    Glad to hear it. ;) Can the status of this thread be changed to [Resolved] now, or..?

    spencerp

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.