I have traveled through razor-sharp cold snow, danced with a hurricane in the high seas, slept on a mule trodding through the blazing deserts, portaged the white water Yellowstone and now stand before the great throne of ....NINTENDO!! Okay Nintendo, I am told that you are the GOD of htaccess/apache and now I need your help. See below: need your help with a problem I am getting when typing in URLs for my website. For example, when I give someone a URL to one of the pages within my site example: http://www.spireviews.com/article/radisson/South-Padre-Island-hotels/ They click it and then the URL switches by itself to: http://www.spireviews.com/view-article-details.php And then that page's content dissapears with nothing left except the shell. What the heck is going on? I suspect it's something in my htaccess file. My htaccess file: php_value session.use_only_cookies 1 php_value session.use_trans_sid 0 # -FrontPage- RewriteEngine On IndexIgnore .htaccess */.?* *~ *# */HEADER* */README* */_vti* <Limit GET POST> order deny,allow deny from all allow from all </Limit> <Limit PUT DELETE> order deny,allow deny from all </Limit> AuthName www.example.com AuthUserFile /home/virtual/site17/fst/var/www/html/_vti_pvt/service.pwd AuthGroupFile /home/virtual/site17/fst/var/www/html/_vti_pvt/service.grp RewriteRule ^category/(.*)/$ /articles.php?catname=$1 RewriteRule ^allcategory/(.*)/$ /articles1.php?catname=$1 RewriteRule ^article/(.*)/(.*)/$ /view-article-details.php?articlename=$1&catname=$2 [L] RewriteRule ^articles/(.*)/(.*)/$ /view-article-details.php?articleNamenew=$1&catnamenew=$2 [L] RewriteRule ^article/(.*)/$ /view-article-details.php?articlename=$1 [L] RewriteRule ^read/(.*)$ /read.php?articlename=$1 [L] RewriteRule ^featured/$ /featured-stories-details.php [L] RewriteRule ^featured/(.*)$ /featured-stories.php?featuredId=$1 [L] RewriteRule ^signinchk/(.*)/$ /sign-in.php?err=$1 [L] RewriteRule ^signinreview/(.*)/(.*)/(.*)/$ /sign-in.php?act=rew&articlename=$1&catname=$2&err=$3 [L] RewriteRule ^signinreview/(.*)/(.*)/$ /sign-in.php?act=rew&articlename=$1&catname=$2 [L] RewriteRule ^signin/(.*)/$ /sign-in.php?act=art&articlename=$1 [L] RewriteRule ^signinart/(.*)/(.*)/$ /sign-in.php?act=art&articlename=$1&err=$2 [L] RewriteRule ^signin/(.*)/(.*)/(.*)/$ /sign-in.php?act=art&articlename=$1&catname=$2&err=$3 [L] RewriteRule ^signin/$ /sign-in.php [L] RewriteRule ^review/(.*)/(.*)/$ /add-reviews.php?act=add&articlename=$1&catname=$2 [L] RewriteRule ^reviews/$ /add-reviews.php [L] RewriteRule ^reviews/(.*)/$ /add-reviews.php?id=$1 [L] RewriteRule ^addreviews/(.*)/(.*)/$ /add-reviews.php?&articlename=$1&catname=$2 [L] RewriteRule ^viewreview/(.*)/(.*)/$ /review.php?articlename=$1&catname=$2 RewriteRule ^favorite/(.*)/$ /view-favorites-listing.php?act=add&articlename=$1&err=$2 [L] RewriteRule ^favorite/$ /view-favorites-listing.php [L] RewriteRule ^favmsg/(.*)/$ /view-favorites-listing.php?err=$1 [L] RewriteRule ^events/$ /view-events-listing.php [L] RewriteRule ^events/(.*)$ /view-event-detail.php?eventId=$1 [L] RewriteRule ^favremove/$ /view-favorites-listing.php?act=chkall [L] RewriteRule ^favremoveno/$ /view-favorites-listing.php?act=chkallno [L] RewriteRule ^viewallreview/(.*)/(.*)/$ /view-all-reviews.php?articlename=$1&catname=$2 RewriteRule ^search/$ /search-results.php [L] RewriteRule ^thanks/$ /thanks-register.php [L] RewriteRule ^thanks/(.*)/(.*)/$ /thanks-register.php?err=$1&articlename=$2&act=add [L] RewriteRule ^changepass/$ /change-password.php [L] RewriteRule ^logout/$ /logout.php [L] RewriteRule ^advertise/$ /advertise.php [L] RewriteRule ^catlisting/$ /view-category-listing.php [L] RewriteRule ^signin/(.*)/$ /sign-in.php?err=$1 [L] RewriteRule ^photos/(.*)/$ /view-photos.php?articleId=$1 [L] RewriteRule ^thanks-comment/$ /thanks-comment.php [L] RewriteRule ^thanks-subscribe/$ /thanks-subscribed.php [L] RewriteRule ^thanks-subscribe/(.*)/$ /thanks-subscribed.php?err=$1 [L] RewriteRule ^banner-click/(.*)/$ /banner-click.php?bannerId=$1 [L] RewriteRule ^preview-image/(.*)/$ /preview-image.php?act=main&articleId=$1 RewriteRule ^unsubscribe/(.*)/$ /unsubscribe.php?subscribeId=$1 [L] RewriteRule ^unsubscribemem/(.*)/$ /unsubscribe.php?memberId=$1 [L] RewriteRule ^logout/$ /logout.php [L] I have a feeling the culprit is one of those lines highlighted in BOLD. Do I just delete/remove those lines and all will be fine? But, will I lose the SEO friendly URL for those pages?
Try php_value session.use_only_cookies 1 php_value session.use_trans_sid 0 # -FrontPage- IndexIgnore .htaccess */.?* *~ *# */HEADER* */README* */_vti* <Limit GET POST> order deny,allow deny from all allow from all </Limit> <Limit PUT DELETE> order deny,allow deny from all </Limit> AuthName www.example.com AuthUserFile /home/virtual/site17/fst/var/www/html/_vti_pvt/service.pwd AuthGroupFile /home/virtual/site17/fst/var/www/html/_vti_pvt/service.grp RewriteEngine On Options +Indexes Options +FollowSymlinks RewriteBase / RewriteRule ^category/([^.]+)/$ articles.php?catname=$1 RewriteRule ^allcategory/([^.]+)/$ articles1.php?catname=$1 RewriteRule ^articles/([^.]+)/([^.]+)/$ view-article-details.php?articleNamenew=$1&catnamenew=$2 [L] RewriteRule ^article/([^.]+)/([^.]+)/$ view-article-details.php?articlename=$1&catname=$2 [L] RewriteRule ^article/([^.]+)/$ view-article-details.php?articlename=$1 [L] RewriteRule ^read/([^.]+)$ read.php?articlename=$1 [L] RewriteRule ^featured/([^.]+)$ featured-stories.php?featuredId=$1 [L] RewriteRule ^featured/$ featured-stories-details.php [L] RewriteRule ^signinchk/([^.]+)/$ sign-in.php?err=$1 [L] RewriteRule ^signinreview/([^.]+)/([^.]+)/([^.]+)/$ sign-in.php?act=rew&articlename=$1&catname=$2&err=$3 [L] RewriteRule ^signinreview/([^.]+)/([^.]+)/$ sign-in.php?act=rew&articlename=$1&catname=$2 [L] RewriteRule ^signin/([^.]+)/$ sign-in.php?act=art&articlename=$1 [L] RewriteRule ^signinart/([^.]+)/([^.]+)/$ sign-in.php?act=art&articlename=$1&err=$2 [L] RewriteRule ^signin/([^.]+)/([^.]+)/([^.]+)/$ sign-in.php?act=art&articlename=$1&catname=$2&err=$3 [L] RewriteRule ^signin/$ sign-in.php [L] RewriteRule ^reviews/([^.]+)/$ add-reviews.php?id=$1 [L] RewriteRule ^reviews/$ add-reviews.php [L] RewriteRule ^review/([^.]+)/([^.]+)/$ add-reviews.php?act=add&articlename=$1&catname=$2 [L] RewriteRule ^addreviews/([^.]+)/([^.]+)/$ add-reviews.php?&articlename=$1&catname=$2 [L] RewriteRule ^viewreview/([^.]+)/([^.]+)/$ review.php?articlename=$1&catname=$2 RewriteRule ^favorite/([^.]+)/$ view-favorites-listing.php?act=add&articlename=$1&err=$2 [L] RewriteRule ^favorite/$ view-favorites-listing.php [L] RewriteRule ^favmsg/([^.]+)/$ view-favorites-listing.php?err=$1 [L] RewriteRule ^events/([^.]+)$ view-event-detail.php?eventId=$1 [L] RewriteRule ^events/$ view-events-listing.php [L] RewriteRule ^favremove/$ view-favorites-listing.php?act=chkall [L] RewriteRule ^favremoveno/$ view-favorites-listing.php?act=chkallno [L] RewriteRule ^viewallreview/([^.]+)/([^.]+)/$ view-all-reviews.php?articlename=$1&catname=$2 RewriteRule ^search/$ search-results.php [L] RewriteRule ^thanks/([^.]+)/([^.]+)/$ thanks-register.php?err=$1&articlename=$2&act=add [L] RewriteRule ^thanks/$ thanks-register.php [L] RewriteRule ^changepass/$ change-password.php [L] RewriteRule ^logout/$ logout.php [L] RewriteRule ^advertise/$ advertise.php [L] RewriteRule ^catlisting/$ view-category-listing.php [L] RewriteRule ^signin/([^.]+)/$ sign-in.php?err=$1 [L] RewriteRule ^photos/([^.]+)/$ view-photos.php?articleId=$1 [L] RewriteRule ^thanks-comment/$ thanks-comment.php [L] RewriteRule ^thanks-subscribe/([^.]+)/$ thanks-subscribed.php?err=$1 [L] RewriteRule ^thanks-subscribe/$ thanks-subscribed.php [L] RewriteRule ^banner-click/([^.]+)/$ banner-click.php?bannerId=$1 [L] RewriteRule ^preview-image/([^.]+)/$ preview-image.php?act=main&articleId=$1 RewriteRule ^unsubscribe/([^.]+)/$ unsubscribe.php?subscribeId=$1 [L] RewriteRule ^unsubscribemem/([^.]+)/$ unsubscribe.php?memberId=$1 [L] RewriteRule ^logout/$ logout.php [L] Code (markup):
Changed the order of some stuff, like RewriteRule ^article/(.*)/(.*)/$ /view-article-details.php?articlename=$1&catname=$2 [L] RewriteRule ^articles/(.*)/(.*)/$ /view-article-details.php?articleNamenew=$1&catnamenew=$2 [L] Got rid of the / after the $. Added a few lines and moved one, RewriteEngine On Options +Indexes Options +FollowSymlinks RewriteBase / and changed (.*) to ([^.]+) (I learned about this code after making that FAQ.)
It's only to save me from being banned for being a wacko!! If it wasn't for mod_rewrite, and the FAQs, I would of been banned back when I made that GoogleGuy account!!