• Is it possible to customize a permalink from:

    http://www.sitename.com/?p=1

    to:

    http://www.sitename.com/blog/?p=1

Viewing 4 replies - 1 through 4 (of 4 total)
  • Why? Where is the actual blog? /blog or site root?

    To customize it this way (and I highly recommend you get rid of the messy URLs (e.g., ?p=1, etc.) while you’re at it.

    append this /blog/ to the custom permalink structure. Should be fine. But if your blog is actually in the subdir /blog/ there’s no need.

    I’m confused.

    Thread Starter scooby

    (@scooby)

    The actual blog is in the blog directory.. I think I found a way around it though..

    By setting this code:

    define('WP_USE_THEMES', true);

    to “false” I was able to customize my existing index page to work with wordpress while still having my blog’s index page in the root folder as well.. All I was really doing was trying to rename the blog’s index.php so that it doesnt take over my home page is all..

    Thanks for the reply..

    Thread Starter scooby

    (@scooby)

    I do have a another question about what you said about getting rid of messy urls though.. I tried to follow this tutorial, but I ran into a problem..

    It didn’t pop out any code to create my .htacces file like the video did.. Is there something wrong with my installation, or is there some other way to obtain the code I need for the .htaccess file??

    Thanks again..

    Be sure under General Options that you set your blog directory as /blog and not the root. There is NO REASON for you to be editing those core files. (In other words, keep your cotton-picking hands off of them!)

    In General Options, there is a permalinks tab. Find the structure you like. WP should create an .htaccess file in your /blog directory. If it doesn’t, you should just create a plain, empty file called .htaccess and upload it to your /blog directory. CHMOD it to 666, go back into the WP dashboard and set your permalink structure, allow WP to write to it and then CHMOD that file back to 644.

    HTH.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Customize Permalink’ is closed to new replies.