Forum Moderators: phranque

Message Too Old, No Replies

Wordpress Url - to static link

Please help me.....htaccess file

         

itravelvietnam

9:36 am on Jan 8, 2007 (gmt 0)

10+ Year Member



Dear all,

I dont know whether my post is in the right forum or not..but anyway, please help me.

I have created a blog on my website using Wordpress 2: www.mydomain.com/blog/

However, the post link is not static and look something like: [mysite.com...]

So please tell me how to change it to:

[mysite.com...]

somewhere on the net say that a .htaccess file should be uploaded, but I am newbie to it (dont laught at me on that) if possible, could you show me the sample.

Thanks and regards,

Kurt

beesticles

9:57 am on Jan 8, 2007 (gmt 0)

10+ Year Member



Kurt,

This is controlled by permalinks, found under the options tab in the admin interface.

Have a look at this [codex.wordpress.org] to see if it answers your questions. Come back if you need more help. I took me a while to figure this out for my blog, but I got there in the end even without knowing too much about .htaccess files.

itravelvietnam

10:18 am on Jan 8, 2007 (gmt 0)

10+ Year Member



Beesticles,

Your reply is GREAT, it solve my problem...

the link has been change from:

[mysite.com...]

to:

[mysite.com...]

However....the [mysite.com...] is DIED., and can not be accessed...what happened?

Again, thanks for your help.

Kurt

beesticles

10:38 am on Jan 8, 2007 (gmt 0)

10+ Year Member



Why don't you sticky me your blog's URL so I can see the error. I'm sure it will be easy to fix. Probably you need a default htaccess file in the root of your Wordpress install.

itravelvietnam

1:38 am on Jan 9, 2007 (gmt 0)

10+ Year Member



Hi you, thanks for your reply, however if I post URL it will breach th WW TOS...so pity...

I am newbie to the .htaccess so could you please send me a sample?

I also dont know why the url is died...

Thanks,

Kurt

beesticles

12:05 pm on Jan 9, 2007 (gmt 0)

10+ Year Member



You can send me the link privately by sticky mail. There's a link to the left of this post underneath my user name.

You'll probably want a htaccess file something like this:


<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME}!-f
RewriteCond %{REQUEST_FILENAME}!-d
RewriteRule ^(.+)$ /index.php/$1 [L]
</IfModule>

This works for Linux/Apache. I don't know what platform you're hosting your blog on, so don't expect to be able to just fix the problem with a copy and paste.