Jump to content

How to remove one section from URL


optikalefx

Recommended Posts

I need to remove /vbulletin from www.site.com/vbulletin/whatever

so that it rewrites to www.site.com/whatever

 

I can't figure out how to rewrite a part to be root, so i've made the folder vbulletin and will have index.php do the routing

RewriteRule vbulletin/(.*) vbulletin/index.php

 

But im using vbSEO so i can't just do the above.

VBSEO has this

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/

RewriteRule ^(.+)$ vbseo.php [L,QSA]

 

So I figured i could add vbulletin to that cond list. But doing this

RewriteCond %{REQUEST_FILENAME} !vbulletin

doesn't work.

 

Any ideas? Or am i not explaining this well at all.

 

Thanks!

 

 

Link to comment
https://forums.phpfreaks.com/topic/221073-how-to-remove-one-section-from-url/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.