optikalefx Posted December 8, 2010 Share Posted December 8, 2010 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! Quote Link to comment https://forums.phpfreaks.com/topic/221073-how-to-remove-one-section-from-url/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.