PDA

View Full Version : How to SEO/tidy up blog urls.


Carnage-
Wed 5th Sep '07, 1:59pm
i posted this into one of the suggestions but i thought it'd probably get over looked there so:

If you want that link SEO'd you can do it like this:


Options +FollowSymLinks
RewriteEngine on
RewriteRule blog/(.*)/$ /forum/blog.php?username=$1


put that into a .htaccess file in the dir containing blog.php and it will turn www.vbulletin.com/blog/username/ (http://www.vbulletin.com/forum/../blog/username/) into the correct url. Then edit the templates somewhere to mention that that url can also be used to access their blog.

ViperMan
Wed 5th Sep '07, 6:29pm
i posted this into one of the suggestions but i thought it'd probably get over looked there so:

If you want that link SEO'd you can do it like this:


Options +FollowSymLinks
RewriteEngine on
RewriteRule blog/(.*)/$ /forum/blog.php?username=$1
put that into a .htaccess file in the dir containing blog.php and it will turn www.vbulletin.com/blog/username/ (http://www.vbulletin.com/forum/../blog/username/) into the correct url. Then edit the templates somewhere to mention that that url can also be used to access their blog.

This doesn't work on an IIS server correct?

And for it to work on an IIS server, an external program needs to be purchased, as well as ROOT access to the server?

Carnage-
Thu 6th Sep '07, 7:37am
I would never use iis as a webserver so i dont know.

wh-solution
Thu 6th Sep '07, 12:58pm
Hmm my blog url looks like blog.php?u=1 and not like blog.php?username=name so guess this suggestion will not work that way.

Freddie Bingham
Thu 6th Sep '07, 1:36pm
Hmm my blog url looks like blog.php?u=1 and not like blog.php?username=name so guess this suggestion will not work that way.
Yes it will.

Kohhal
Thu 6th Sep '07, 2:17pm
Is there a way to use .htaccess to get urls like username.domain.com ?

Marcos2
Thu 6th Sep '07, 4:13pm
Hello,

For those of us non-programmers, can you explain in a little more detail what to do? So you create a .htaccess file, insert this code, then upload it into the directory that has blog.php. How would you create the .htaccess file and in which folder would you put it into?

Thanks,

Marcos

ajcbarrett
Fri 7th Sep '07, 3:41pm
I just get page not found using this?

Im using VBSEO so already have a .htaccess file if that makes a difference. I just added your info to the bottom of the file.

Lizard King
Fri 7th Sep '07, 4:04pm
I just get page not found using this?

Im using VBSEO so already have a .htaccess file if that makes a difference. I just added your info to the bottom of the file.
Hello ,

vBSEO is currently testing SEO'd blog url's. It will be released with the next version update. Thats why i advise you to wait for that. You can see it on action @ http://www.vbseo.com/blogs/

Michelle
Sat 8th Sep '07, 12:14am
Is there a way to use .htaccess to get urls like username.domain.com ?
Anyone?

FreshFroot_
Sat 8th Sep '07, 3:04am
NuSEO has the blog feature. They also already have the project tools SEO release too, which is selectable right now.

Check the demo here: http://www.nuhit.com/blog/

riskofficer
Sat 8th Sep '07, 9:39am
Is there a way to use SOMETHING to get urls like username.domain.com?

Michelle
Sat 8th Sep '07, 9:59am
Is there a way to use SOMETHING to get urls like username.domain.com?
Kohhal and I have already asked the same question, so I guess we should wait till someone more keen on Apache sees the thread.

FreshFroot_
Sat 8th Sep '07, 4:57pm
so your saying something like riskofficer.domainname.com (riskofficer@domainname.com) meaning if it was installed here on vB you'd want riskofficer.vbulletin.com for all members, where the 1st part is a username?

If so, you should request this feature at www.nuhit.com/forums (http://www.nuhit.com/forums) in the features area. They're very fast with implementing user requested features. I've requested a few things and within a week all of them were added.

riskofficer
Sun 9th Sep '07, 3:41am
I think guys from Jelsoft Enterprises Ltd. should help us. They sold product and must support it!

Michelle
Sun 9th Sep '07, 9:13am
I think guys from Jelsoft Enterprises Ltd. should help us. They sold product and must support it!
That's not support, as we're not having any problem with the software, we just want to change something to it. Of course they are not obligated to reply!

Carnage-
Mon 10th Sep '07, 1:38pm
Is there a way to use .htaccess to get urls like username.domain.com ?

This is a little more tricky, i found this tutorial on how to do it thou: http://www.easymodrewrite.com/example-subdomains

MsJacquiiC
Tue 11th Sep '07, 1:10am
That's not support, as we're not having any problem with the software, we just want to change something to it. Of course they are not obligated to reply!

Oh PAH! They were so keen on getting our money!
They should feel at least OBLIGATED to help with customer questions instead of the ole boring concept as seen below:

Sorry, bla bla bla bla bla bla ugh and bla.... This requires modifying the code. We cannot officially support code modifications or forums running modified code, however you can try searching or asking for help with this over at www.vbulletin.org.

Jacquii.

riskofficer
Tue 11th Sep '07, 4:28am
Yes man, I couldn't explain in English my point of view as good as you did. Im fully agree with you, "They should feel at least OBLIGATED to help with customer questions instead of the ole boring concept". And in case that vBlog is not meeting modern standarts, but they sell it, they must support it much more better then they do it.

FreshFroot_
Wed 12th Sep '07, 12:51am
Yes man, I couldn't explain in English my point of view as good as you did. Im fully agree with you, "They should feel at least OBLIGATED to help with customer questions instead of the ole boring concept". And in case that vBlog is not meeting modern standarts, but they sell it, they must support it much more better then they do it.
yeah I agree too. It seems since the blogs/project tools have come out, the support has dropped a lot.. your lucky if you get a reply, especially in the blog and project forums.

Freddie Bingham
Thu 13th Sep '07, 1:33am
I think guys from Jelsoft Enterprises Ltd. should help us. They sold product and must support it!
SEO options are not planned for vBulletin or any of its products until v4 of vBulletin. The current code just requires too many kludges to add it in.

Kohhal
Fri 14th Sep '07, 7:44am
This is a little more tricky, i found this tutorial on how to do it thou: http://www.easymodrewrite.com/example-subdomains
Hi Carnage,

I got the first 2 parts done for my site and all seems good.

What code did you use in .htaccess for the rewrite?

Toucan42
Fri 14th Sep '07, 10:38am
Where did you find httpd.conf? I am having trouble locating where this file might be. This is prolly a newbie question, but I'm a Windows guy not a Linux guy and Apache is newer to me.

ElfMage
Fri 14th Sep '07, 12:59pm
Where did you find httpd.conf? I am having trouble locating where this file might be. This is prolly a newbie question, but I'm a Windows guy not a Linux guy and Apache is newer to me.

Hi Toucan42,

The httpd.conf file is found in the conf directory, under the Apache installation directory.

If Apache was installed in the default location in your server, it is probably under Program Files / Apache Foundation, or something like that.

Toucan42
Fri 14th Sep '07, 1:08pm
Thanks for the reply. Turns out my Host had to manage it for me - they don't give the level access needed. I got it done but am now struggling with the mod_rewrite for turning:

http://username.domain.com

into

http://www.domain.com/blog.php?username=username

once i get this i should be golden!

any ideas? [not only am i not a linux guy i'm also not a regular expressions guy]

Toucan42
Fri 14th Sep '07, 1:09pm
Hi Carnage,

I got the first 2 parts done for my site and all seems good.

What code did you use in .htaccess for the rewrite?

Did you get this figured out?

Kohhal
Sat 15th Sep '07, 8:35pm
Nope not yet, need to do the same as what you're trying... :confused:

ElfMage
Sun 16th Sep '07, 1:00am
Hi,

Try the following .htaccess rules:


RewriteCond %{HTTP_HOST} !^www\.nuhit\.com$ [NC]
RewriteCond %{HTTP_HOST} ^([A-Z0-9a-z-]+)\.nuhit\.com$ [NC]
RewriteCond %{DOCUMENT_ROOT}/%1 !-d
RewriteRule ^/?$ /forums/blog.php?username=%1 [L]


Change www.nuhit.com to your site's domain name, and tweak the forums/blog.php location if needed.

Carnage-
Sun 16th Sep '07, 6:17pm
well, this is the code they use on that page:


<IfModule mod_rewrite.c>
Options +FollowSymLinks
Options +Indexes
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !www.domain.com$ [NC]
RewriteCond %{HTTP_HOST} ^(www.)?([a-z0-9-]+).domain.com [NC]
RewriteRule (.*) %2/$1 [L]
</IfModule>

So i guess something like this would work as a rewrite rule for the blogs


Options +FollowSymLinks
Options +Indexes
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !www.domain.com$ [NC]
RewriteCond %{HTTP_HOST} ^(www.)?([a-z0-9-]+).blogs.domain.com [NC]
RewriteRule (.*) /forum/blog.php?username=%2 [L]


would work however i dont have the blogs installed yet so i cant test this.

the url per user would be username.blogs.domain.com optionally prefixed with www.

Kohhal
Tue 18th Sep '07, 6:34am
Tried both of these and with various combinations and no joy.

Hi,

Try the following .htaccess rules:


RewriteCond %{HTTP_HOST} !^www\.nuhit\.com$ [NC]
RewriteCond %{HTTP_HOST} ^([A-Z0-9a-z-]+)\.nuhit\.com$ [NC]
RewriteCond %{DOCUMENT_ROOT}/%1 !-d
RewriteRule ^/?$ /forums/blog.php?username=%1 [L]
Change www.nuhit.com (http://www.nuhit.com) to your site's domain name, and tweak the forums/blog.php location if needed.

Using this at least changes something : I'm asked to login even though I already am and then I get a page not found error for blahblah.domain.com/login.php or something (subdreamer related I think)

...


Options +FollowSymLinks
Options +Indexes
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !www.domain.com$ [NC]
RewriteCond %{HTTP_HOST} ^(www.)?([a-z0-9-]+).blogs.domain.com [NC]
RewriteRule (.*) /forum/blog.php?username=%2 [L]
would work however i dont have the blogs installed yet so i cant test this.

the url per user would be username.blogs.domain.com optionally prefixed with www.

When I include this I get a 501 error and it breaks the wildcard redirect prevously set up...?

Anyone else have it working?

joomlajon
Mon 24th Sep '07, 8:06am
Edit template somwhere??? Where???

:)

/Jon

i posted this into one of the suggestions but i thought it'd probably get over looked there so:

If you want that link SEO'd you can do it like this:


Options +FollowSymLinks
RewriteEngine on
RewriteRule blog/(.*)/$ /forum/blog.php?username=$1
put that into a .htaccess file in the dir containing blog.php and it will turn www.vbulletin.com/blog/username/ (http://www.vbulletin.com/forum/../blog/username/) into the correct url. Then edit the templates somewhere to mention that that url can also be used to access their blog.

AnnieC
Sun 30th Sep '07, 10:34pm
That's my question too, Jon....

karlm
Wed 3rd Oct '07, 8:47pm
It seems to break images from the forum/blog.

Carnage-
Sun 7th Oct '07, 3:11pm
Edit template somwhere??? Where???

:)

/Jon

The template edit is only for user conveniance. You just need to edit a convenient blog template to tell your users what their blog url is

sharrison
Mon 8th Oct '07, 12:36pm
SEO options are not planned for vBulletin or any of its products until v4 of vBulletin. The current code just requires too many kludges to add it in.

Hi Freddie,

I can understand that, but putting SEO aside entirely , are VB going to at least make the users blog home page URL resemble something that wasn't written by a Dalek?

http://www.domain.com/blog.php?b=1

Is a pretty darn fugly URL for something that represents somebodies home page no ?

Surely you brainy folk can manage

http://www.domain.com/blog/simon

Or something similar?

sharrison
Mon 8th Oct '07, 12:41pm
Never mind, looks like the VBSEO folk have a solution.

Ludachris
Fri 12th Oct '07, 2:05pm
i posted this into one of the suggestions but i thought it'd probably get over looked there so:

If you want that link SEO'd you can do it like this:


Options +FollowSymLinks
RewriteEngine on
RewriteRule blog/(.*)/$ /forum/blog.php?username=$1


put that into a .htaccess file in the dir containing blog.php and it will turn www.vbulletin.com/blog/username/ (http://www.vbulletin.com/forum/../blog/username/) into the correct url. Then edit the templates somewhere to mention that that url can also be used to access their blog.
Not sure why this is stickied if it doesn't work for everyone. I tried it and it just shows Page Not Found. Are there any other requirements aside from the .htaccess file?

Lifeinitaly
Tue 27th Nov '07, 3:09pm
Rewrite works but I cannot see the images -
Since I don't have a forum subdirectory - but a second level domain ( my.lifeinitaly.com is where the forum is )

Options +FollowSymLinks
RewriteEngine on
RewriteRule blog/(.*)/$ /blog.php?username=$1

This works
http://my.lifeinitaly.com/blog.php?u=27

Thisshows the missing images and the link url that are incorrect
http://my.lifeinitaly.com/blog/justindemetri/

Thanks
P

noppid
Mon 17th Dec '07, 5:54pm
Try adding FULL PATHS to your images maybe?

CallieJo
Sun 23rd Dec '07, 4:06pm
Not sure why this is stickied if it doesn't work for everyone. I tried it and it just shows Page Not Found. Are there any other requirements aside from the .htaccess file?

Doesn't work for me either.

Edited....

Try this:
RewriteEngine on
RewriteRule ^\blog/?(.*)$ blog.php?u=$1 [L]
That worked for me....

I've also found a way to make this work for profiles: I posted that here on Vb.org (http://www.vbulletin.org/forum/showthread.php?t=165986)

karlm
Mon 7th Apr '08, 12:20pm
My forum (and thus) blogs are held within the main domain, and this is still an issue - using full paths.
Try adding FULL PATHS to your images maybe?

nxvc
Mon 21st Apr '08, 5:12pm
Doesn't work correctly. It's destroying the template and furthermore not showing any icons.

ZeroHour
Thu 22nd May '08, 11:02am
I have this working at my end (not for use for blog it just displays their profile but blogs could be done)
Should I reveal the magic? :D

Merriweather
Sun 27th Jul '08, 6:30am
Hello ,

vBSEO is currently testing SEO'd blog url's. It will be released with the next version update. Thats why i advise you to wait for that. You can see it on action @ http://www.vbseo.com/blogs/Has anyone gotten an .htaccess rewrite to work without vBSEO? I don't really care to pay $149 just to have access to one rewrite. :(

cheat-master30
Sun 27th Jul '08, 12:44pm
I have someone who's made the blog URL 'SEOed' on my forum, with this format:

http://domain.com/forumdirectory/blog-[username]

I'll ask them if I can post the .htaccess content on vBulletin.org as either a modification or article.

Merriweather
Sun 27th Jul '08, 1:04pm
Thank you, it would be a great help to me!