PDA

View Full Version : .htaccess help please


Immortal_Shades
03-06-2007, 08:12 PM
I have a buddy of mine who owns www.micmacrecords.com, now the site is a xoops setup and in the past I removed the horrible xoops linking: (Example: www.blahblah.com/modules/ etc etc.) by adding a .htacess file.

Once I did that the site would just show the .com name in the url and no xoops module names afterwards. It was awesome but I screwed up and overwrote that file without saving it and now I cant figure how to do it again.

Anyone have any suggestions?

The site originally was set to www.micmacrecords.com and an intro would play, well the intro was removed so I need to .htaccess it to go from that front page to his domain folder on his .com.

I tried a redirect and it worked but it still shows the added xoops garbage after the .com in the browser window url box.

So if it shows www.blahblah.com/modules/gallery/
I want it to show www.blahblah.com/ and hide all else.

Zero Tolerance
03-06-2007, 09:23 PM
You will want to use the rewrite rule in your .htaccess file to do this.

You can try this and see if it is what you want


RewriteEngine on
RewriteBase blahblah.com/modules/blah/blahblah/

RewriteRule blahblah.com/(.*) cgi-bin/blahblah.com$1