vBulletin Search Engine Optimization
This is a discussion on Custom Addons Rewrite within the Troubleshooting forums, part of the vBSEO SEO Plugin category; I'm adding a custom addon to my site which I would like to have the urls use vbseo . Because ...
| |||||||
Enhancing 80 million pages. | Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| Custom Addons Rewrite I'm adding a custom addon to my site which I would like to have the urls use vbseo. Because the software is encoded, I have no idea where to go with this. Here's how my links are: http://www.site.com/page.php Then there are links on that page which need to look like this: http://www.site.com/page/title-test.html Just like the forums are redirected. Is there a function I can call to have the links redirected automatically? The biggest issue I'm having with this software is because it's encoded. I need help on this ASAP. |
|
#3
| |||
| |||
| Re: Custom Addons Rewrite The thing is, I want the titles to be automatically striped of characters like the titles of the threads are. |
|
#4
| ||||
| ||||
| Re: Custom Addons Rewrite The custom rewrite rules allow you to prepare a new seo url based on the parameters that exists in the original url only. So, if you custom addon will have urls like page.php?title=the_page_title, then you can make a custom rule to have seo url with title in it.
__________________ Oleg Ignatiuk / Crawlability Inc. vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD 6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You. |
|
#5
| |||
| |||
| Re: Custom Addons Rewrite Oleg, Thanks for your reply. I'm aware of how it works so that's not an issue. I can write my own rewrites but here's where the issue comes in to play... Here is what my rewrites would look like (without regex): http://www.site.com/filename.php This is fine, nothing will happen. http://www.site.com/filename/9-this-a-sample-it.html This page would goto: http://www.site.com/filename.php?id=9 That's simple right? Correct. Now, the question I'm asking for is... My title is originally something like this: This a Sample & It should be stripped after 4 words. You have somewhere within your code a function that I'm assuming does this for you. I've never actually used encrypted code so I'm not sure exactly how this will work, but... Here's what I want... I want to send that title to a function which will return the shorted and SEO string for the url. So let's give some sample php code. [php]$url = vbseo_url($var['title']);[php] Then I'll just use the $url in the vBulletin template. Do you follow what I'm saying? |
|
#6
| ||||
| ||||
| Re: Custom Addons Rewrite Quote:
Example: Code: '^showgroups\.php$' => 'forumleaders/' 1) rewrite 'showgroups.php' as 'forumleaders/' (and) 2) will 301 redirect showgroups.php to 'forumleaders/' Check it out: http://www.vbseo.com/forumleaders/ Edit: This was in reply to Custom Addons Rewrite
__________________ Juan Muriente / Crawlability Inc. vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD 6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You. |
|
#7
| ||||
| ||||
| Re: Custom Addons Rewrite Quote:
__________________ Juan Muriente / Crawlability Inc. vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD 6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You. |
|
#8
| |||
| |||
| Re: Custom Addons Rewrite I attempted to do that and it was not working which is why I was looking for help. Do i have to have the full URL in a variable for this to work? I need more information on how this works. In my template I had this: page.php?id=8 That didn't work... I then just tried this: page/$var[tipid]-$var[title].html That returns a link like this: page/8-This is a Title.html I need it to do the clipping you were talking about. I just thought of something... It's a custom template, does this matter? I'm going to PM you the actual link to the site. I don't really want it public yet. |
|
#9
| ||||
| ||||
| Re: Custom Addons Rewrite Quote:
PHP Code:
__________________ Juan Muriente / Crawlability Inc. vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD 6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You. |
|
#10
| |||
| |||
| Re: Custom Addons Rewrite That's the function I needed. I just did this code to test it though: PHP Code: |
|
#11
| ||||
| ||||
| Re: Custom Addons Rewrite Great! Closing this thread.
__________________ Juan Muriente / Crawlability Inc. vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD 6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You. |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Syntax for Custom Rewrite Rules | Joe Ward | Custom Rewrite Rules | 7 | 07-19-2008 06:14 AM |
| vBSEO 2.0 RC7 Released | Juan Muriente | vBSEO Announcements | 17 | 09-08-2005 11:00 PM |