GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Webmaster Q & Fuckin' A (https://gfy.com/forumdisplay.php?f=27)
-   -   wordpress permalink problem (https://gfy.com/showthread.php?t=666494)

OTerror 10-15-2006 10:25 AM

wordpress permalink problem
 
I'm trying to change the default "ugly" directory to post..it says to edit my .htaccess file but I dont see one in wordpress how can I fix this?

scouser 10-15-2006 12:25 PM

You might need to make one.
For me, wordpress (2) always creates the .htaccess file for me though.........

StarkReality 10-15-2006 03:14 PM

If you are using a newer version of wordpress, there is no need to write anything to a .htaccess file (which can be made in a text editor, named to .htaccess and uploaded) because wordpress handles permalinks internally.

Go to -> Options -> Permalinks in your admin navigation, select "Custom, specify below" and insert something like /%post_id%-%postname%.html

The example above would create permalinks like /124-the-name-of-my-blog-post.html

Advantages:
1. No ugly deep directory structure, which would prolong the process of g**gle crawling your blog
2. If you create two posts with the same title, which can happen easily, for example if you import large sponsor feeds, it's still two seperate permalinks because of the unique post id in front.
3. Keywords repeated in the .html file name
4. Changes in category name or deletion of categories don't affect the posts or make them invalid.

OTerror 10-16-2006 07:02 AM

Quote:

Originally Posted by StarkReality (Post 11082090)
If you are using a newer version of wordpress, there is no need to write anything to a .htaccess file (which can be made in a text editor, named to .htaccess and uploaded) because wordpress handles permalinks internally.

Go to -> Options -> Permalinks in your admin navigation, select "Custom, specify below" and insert something like /%post_id%-%postname%.html

The example above would create permalinks like /124-the-name-of-my-blog-post.html

Advantages:
1. No ugly deep directory structure, which would prolong the process of g**gle crawling your blog
2. If you create two posts with the same title, which can happen easily, for example if you import large sponsor feeds, it's still two seperate permalinks because of the unique post id in front.
3. Keywords repeated in the .html file name
4. Changes in category name or deletion of categories don't affect the posts or make them invalid.

Thanks Ill give this a try see if it works.

OTerror 10-16-2006 07:18 AM

did not work it says to update my .htaccess file

Fat Panda 10-16-2006 12:12 PM

i have always had to paste the code they give you into notepad, then save as .htaccess and upload it to you sites root directory...good luck

Fat Panda 10-16-2006 12:13 PM

i have always had to paste the code they give you into notepad, then save as .htaccess and upload it to you sites root directory...good luck


All times are GMT -7. The time now is 01:46 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123