vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Getting rid of index.php? (https://vborg.vbsupport.ru/showthread.php?t=64891)

iceman11111 05-08-2004 10:43 PM

Getting rid of index.php?
 
How do you get rid of the index.php? in the url?

I would like my URL to read:
http://www.women4fitness.com/forums/

not
http://www.women4fitness.com/forums/index.php?


I find, that by doing this I get a better PR on google for my forums page.

Could someone please point me in the right direction.


Thanks
Iceman

kall 05-09-2004 08:52 AM

AFAIK, if google *could* see /forums/, it would be the list of directories and files in that directory...not what it sees when it goes to /forums/index.php

If I'm incorrect, someone please say.

Hialls 05-09-2004 10:00 AM

Its possible i believe you just edit apaches httpd.conf and remove *.php for root directory therfore even if index.php exists it will just show a list of files, but index.php will still be viewable

iceman11111 05-09-2004 02:29 PM

Here's an example of my other site (using Vb2)

http://www.intense-training.com/forums/ (has a 4/10 PR)
http://www.intense-training.com/forums/index.php3?s= (has a 0/10 PR)

But the funny thing is, they are the same page!


Google just seems to except a cleaner, shorter link!

I know it has something to do with the htaccess and re-write rules, I just forget how I did it all!

iceman11111 05-10-2004 01:13 PM

bump!

dstruct2k 05-10-2004 02:31 PM

Uhhh... most Apache servers that have PHP installed on them have "index.php" set as one of the root files shown, so pointing all links to "/forums/" will automatically link to "index.php" (or index.html first if it exists)


Just alter your links. The php file should stay where it is.

allan grossman 05-10-2004 03:36 PM

Quote:

Originally Posted by dstruct2k
Uhhh... most Apache servers that have PHP installed on them have "index.php" set as one of the root files shown, so pointing all links to "/forums/" will automatically link to "index.php" (or index.html first if it exists)


Just alter your links. The php file should stay where it is.

To elaborate just a little, look at the 'DirectoryIndex' setting in httpd.conf - either as a global setting or a virtual server setting ;)

pjdaley 05-10-2004 07:01 PM

subdomain wouldn't hurt.

instead of mysite.com/forums
it would be

http://forums.mysite.com

pjdaley 05-10-2004 07:02 PM

that of course would mean, no index.php... but u might want to look into that

iceman11111 05-14-2004 03:35 PM

well there is a way to do it via htaccess

But I am not really up on my rewrite rules

Can anyone help out?


All times are GMT. The time now is 04:12 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02561 seconds
  • Memory Usage 1,727KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete