Go Back   HostGator Peer Support Forums > HostGator Peer Support Forums > Shared Hosting Support

Notices

Reply
 
Thread Tools
  #1  
Old 09-17-2006, 01:17 PM
alexmosutheskypirate alexmosutheskypirate is offline
Baby Croc
 
Join Date: Jul 2006
Posts: 58
Neutral mod_rewrite ??(.htaccess)

hello people
i have a PostNuke site and i want to install a module that allows google to see my dynamic content.
the module asks for ---.htaccess (special mod_rewrite rules)
it comes with a .htaccess file...and the install.txt says the server must have mod_rewrite
does hostgator have this?
and am i supposed to copy all the content of the new .htaccess to my old one...?? the special mod rewrite rules are there...

here is the .htaccess must i copy all of it to my .htaccess?

Code:
# http://httpd.apache.org/docs/misc/rewriteguide.html
RewriteEngine on

# -- This is to deactivate urls like this: sitemap.html?POSTNUKESID=9ee22afbb07b4d9987a1f81b89748767
# -- Because Searchengines don't follow links like this
# -- PLEASE REMOVE IF YOU GET AN ERROR 500 !
php_flag session.use_trans_sid off
Options +FollowSymlinks
# -- To execute php in html
AddType application/x-httpd-php php php4 php3 html htm

# -- For the Sitemap
RewriteRule ^sitemap_([1-9][0-9]*)\.html$ /sitemap.php?start=$1 [L]
RewriteRule ^sitemap(.*)\.html$ /sitemap.php [L]

# -- ContentExpress
# -- All sites should be accessed via ce_index<ceid>.html
RewriteRule ^ce_index(.*)\.html$ /index.php?module=ContentExpress&func=display&ceid=$1 [L]

# -- Calendar
# -- All sites should be accessed via cal_index<pc_sid>.html
RewriteRule ^cal_index(.*)\.html$ /index.php?module=PostCalendar&func=view&viewtype=details&eid=$1 [L]

# -- News (http://www.postnuke.com)
# -- All sites should be accessed via news_index<pn_sid>.html
RewriteRule ^news_index(.*)\.html$ /modules.php?op=modload&name=News&file=article&mode=thread&order=0&thold=0&sid=$1 [L]

# -- EZCMS
# -- All sites should be accessed via ez_index<page_id>.html
RewriteRule ^ez_index(.*)\.html$ /modules.php?op=modload&name=EZCMS&file=index&page_id=$1 [L]

# -- PagEd
# -- All sites should be accessed via pg_index<page_id>.html
RewriteRule ^pg_index(.*)\.html$ /index.php?name=PagEd&page_id=$1 [L]

# -- Downloads (http://www.postnuke.com)
# -- All sites should be accessed via dl_index<page_id>.html
RewriteRule ^dl_index(.*)\.html$ /modules.php?op=modload&name=Downloads&file=index&req=viewdownload&cid=$1 [L]

# -- My eGallery (http://www.marsishere.net)
# -- All sites should be accessed via egal_index<page_id>.html
RewriteRule ^egal_index(.*)\.html$ /index.php?module=My_eGallery&do=showgall&gid=$1 [L]

# -- subjects 2.0 (http://home.postnuke.ru)
# -- All sites should be accessed via subj_index<page_id>.html
RewriteRule ^subj_index(.*).html$ /modules.php?op=modload&name=Subjects&file=index&req=viewpage&pageid=$1 [L]
#RewriteRule ^subj_index(.*)\.html$ /index.php?module=subjects&func=viewpage&pageid=$1 [L]

# -- phpBB_14 1.75 (http://www.pncommunity.de/)
# -- All sites should be accessed via phpbb14_index<page_id>.html
RewriteRule ^phpbb14_index(.*)\.html$ /modules.php?op=modload&name=phpBB_14&file=index&action=viewtopic&topic=$1 [L]

# -- phpBB_2 (http://www.pnphpbb.com/)
# -- All sites should be accessed via phpbb2_index<page_id>.html
RewriteRule ^phpbb2_index(.*)\.html$ /index.php?name=PNphpBB2&file=viewtopic&t=$1 [L]

# -- Sections (http://www.postnuke.com)
# -- All sites should be accessed via section_index<page_id>.html
RewriteRule ^section_index(.*)\.html$ /modules.php?op=modload&name=Sections&file=index&req=listarticles&secid=$1 [L]

# -- Semantics
# -- All sites should be accessed via sem_index<sem_sid>.html
RewriteRule ^sem_(.*)index(.*)\.html$ /index.php?module=Semantics&func=display&cid=$1&startnum=$2 [L]

# -- postGuesBook
# -- All sites should be accessed via or_index<gb_sid>.html
RewriteRule ^pgb_index(.*)\.html$ /index.php?module=postguestbook&func=view&id=$1 [L]

# -- PhotoShare
# -- All sites should be accessed via ps_index<ps_sid>.html
RewriteRule ^ps_index(.*)\.html$ /index.php?module=photoshare&func=showimages&fid=$1 [L]

# -- PostBoard
# -- All sites should be accessed via pb_index<pb_postid>.html
RewriteRule ^pb_index(.*)\.html$ /modules.php?op=modload&name=PostBoard&file=index&req=viewtopic&topic_id=$1 [L]

# -- FAQ
# -- All sites should be accessed via faq_index<faq_id_cat>.html
RewriteRule ^faq_index(.*)\.html$ /modules.php?op=modload&name=FAQ&file=index&myfaq=yes&id_cat=$1 [L]

# -- pnCommerce
# -- All sites should be accessed via pnc_index<pnc_ItemID>.html
RewriteRule ^pnc_index(.*)\.html$ /index.php?module=pncommerce&func=itemview&IID=$1 [L]

# -- Books
# -- All sites should be accessed via bk_index<bk_ItemID>.html
RewriteRule ^bk_index(.*)\.html$ /modules.php?op=modload&name=Books&file=index&bkid=$1 [L]

# -- Reviews (http://www.postnuke.com)
# -- All sites should be accessed via reviews_index<page_id>.html
RewriteRule ^reviews_index(.*)\.html$ /modules.php?op=modload&name=Reviews&file=index&req=showcontent&id=$1 [L]

# -- Journal
# -- All sites should be accessed via journal_index<journal_uname>.html
RewriteRule ^journal_index(.*)\.html$ /modules.php?op=modload&name=Journal&file=search&bywhat=aid&forwhat=$1 [L]

# -- pnAddressBook
# -- All sites should be accessed via pnaddressbook_index<bk_ItemID>.html
RewriteRule ^pnaddressbook_index(.*)\.html$ /index.php?module=pnAddressBook&func=viewDetail&id=$1 [L]

# -- ProdReviews
# -- All sites should be accessed via prodreviews_index<prodreviews_ItemID>.html
RewriteRule ^prodreviews_index(.*)\.html$ /index.php?module=prodreviews&func=showcontent&id=$1 [L]

thanks

saludos
__________________



The random hand of fate delivers me to you.
Reply With Quote
  #2  
Old 09-18-2006, 08:27 AM
alexmosutheskypirate alexmosutheskypirate is offline
Baby Croc
 
Join Date: Jul 2006
Posts: 58
Default Re: mod_rewrite ??(.htaccess)

so if no one can tell me nothin' about the mod_rewrite...can you please tell me if it's safe to copy that content to my .htaccess
thanks

saludos
__________________



The random hand of fate delivers me to you.
Reply With Quote
  #3  
Old 09-18-2006, 09:17 AM
GatorAlex
HostGator Guest
 
Posts: n/a
Default Re: mod_rewrite ??(.htaccess)

mod_rewrite is enabled by default. Back up your current .htaccess if you have one and copy that into a new one. If you have any issues with it just open a ticket up support@hostgator.com
Reply With Quote
  #4  
Old 09-18-2006, 01:49 PM
alexmosutheskypirate alexmosutheskypirate is offline
Baby Croc
 
Join Date: Jul 2006
Posts: 58
Default Re: mod_rewrite ??(.htaccess)

thanks !!!! i'm going to do it right now !!!!thanks !
see we Alexes help each other xDDDDD LOL
saludos
__________________



The random hand of fate delivers me to you.
Reply With Quote
  #5  
Old 09-18-2006, 02:11 PM
alexmosutheskypirate alexmosutheskypirate is offline
Baby Croc
 
Join Date: Jul 2006
Posts: 58
Default Re: mod_rewrite ??(.htaccess)

i got error 500 in all my pages..so
i eliminated this..
can you tell me whatit is or if it's important?

Code:
# -- This is to deactivate urls like this: sitemap.html?POSTNUKESID=9ee22afbb07b4d9987a1f81b89748767
# -- Because Searchengines don't follow links like this
# -- PLEASE REMOVE IF YOU GET AN ERROR 500 !
php_flag session.use_trans_sid off
Options +FollowSymlinks
saludos
__________________



The random hand of fate delivers me to you.
Reply With Quote
  #6  
Old 09-18-2006, 02:58 PM
alexmosutheskypirate alexmosutheskypirate is offline
Baby Croc
 
Join Date: Jul 2006
Posts: 58
Default Re: mod_rewrite ??(.htaccess)

i had to edit this and i did..is there somthing i should know?
Code:
 $domain			= "http://www.yourdomain.de/index.php";

    //-- Meta-Tags
    $countrycode    = "de";
    $charset        = "text/html; charset=ISO-8859-1";
    $keywords       = "enter your keywords separated by kommas";
    $author         = "enter the author";
    $descr          = "enter the description wich is shown in the search-results ".few($keywords,7);
    $orgemail       = "enter your email";
    $copyright      = "enter the copyright";
    $title          = "enter the title wich is also shown in the title of the index.html ".few($keywords,7);

    //-- Content
    $maintext       = "enter the main text wich is a summary of all the things visitors can get on your page";

    //-- Just in case you like to add some links
    $addings        = '<h1>'.
                        '<a href="http://www.dmmv.de">DMMV</a>'.
                        '<a href="http://www.google.de">Google</a>'.
                        '<a href="http://www.yahoo.de">Yahoo</a>'.
                        '</h1>';
i edited all of the fields with the obvious data...
can someones indicate what will this do..or where will the description show..?
this is used by spiders to index my page...
in author i put my name
in description i put the description of my site....we'll see if it shows ok ..if not i'll have to change it jejej

thanks !!!

saludos
__________________



The random hand of fate delivers me to you.

Last edited by alexmosutheskypirate; 09-18-2006 at 03:01 PM.
Reply With Quote
  #7  
Old 09-18-2006, 03:29 PM
alexmosutheskypirate alexmosutheskypirate is offline
Baby Croc
 
Join Date: Jul 2006
Posts: 58
Default Re: mod_rewrite ??(.htaccess)

troble..now i have index.php and index.html in my root..
and when i go to http://mydomain.com ..i get a..
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

what can i do?
saludos
__________________



The random hand of fate delivers me to you.
Reply With Quote
  #8  
Old 09-18-2006, 04:04 PM
quietFinn's Avatar
quietFinn quietFinn is online now
Veteran Croc
 
Join Date: Feb 2005
Posts: 3,558
Default Re: mod_rewrite ??(.htaccess)

If the server you are in is running phpSuExec (check this thread: http://forums.hostgator.com/showthread.php?t=8822) you can NOT have lines like this:
Code:
php_flag session.use_trans_sid off
or ANY PHP settings in your .htaccess file. If you have you will get that 500-error.
__________________
quietFinn - netFinn Finland
"Be who you are and say what you feel because those who mind don't matter and those who matter don't mind." - Dr. Seuss
Reply With Quote
  #9  
Old 09-18-2006, 04:23 PM
alexmosutheskypirate alexmosutheskypirate is offline
Baby Croc
 
Join Date: Jul 2006
Posts: 58
Default Re: mod_rewrite ??(.htaccess)

now i renamed the index.html to index.php3 and it works now..
im using phpSuExec yes..
now the javascript doesn`t work in my site...ahmm(i have a js file and links like javascript:alex() etc..and they show internal server error now..)
what should i do? create a php.ini or something ?

and could you look at my .htaccess in the first post and see what i can't use an must eliminate..!
thanks

saludos
__________________



The random hand of fate delivers me to you.

Last edited by alexmosutheskypirate; 09-18-2006 at 04:31 PM.
Reply With Quote
  #10  
Old 09-18-2006, 04:56 PM
alexmosutheskypirate alexmosutheskypirate is offline
Baby Croc
 
Join Date: Jul 2006
Posts: 58
Default Re: mod_rewrite ??(.htaccess)

i just eliminated all of the new .htaccess and javascript works...so..
i'll just eliminate some stuff and see which is the malicious xD

just noticed..the pages that have a href= javascript...something..don't show adsense..why??

saludos
__________________



The random hand of fate delivers me to you.

Last edited by alexmosutheskypirate; 09-18-2006 at 05:10 PM.
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 03:31 PM.