Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Joomsef Screwed - Lost htacces.
(1 viewing) (1) Guest
Support forum for users using free edition of JoomSEF 3 (Joomla 1.5 compatible). These forums are mainly for mutual help between users.

Please note that due to our capacity limitations, we do not monitor these forums regularly.
  • Page:
  • 1

TOPIC: Joomsef Screwed - Lost htacces.

Joomsef Screwed - Lost htacces. 14 years, 4 months ago #13491

For a customer, i fixed up his whole website by managing the SEF Url's, basicly rewriting articles towards site.com/url1/article-2/ and so on. I filled in for every page a custom desc, metas and so on.

Today, the site was as good as done, and i forgot about adding one thing: The non-www towards www only. So that any link towards the non www site would point to www.site.com.

I edited a htaccess file that was sitting on my desktop and uploaded it towards the ftp. Quickly checking by typing site.com and it correctly moved me to www.site.com ,

now , recently (15 minutes ago) i discovered that any inbound URL would not work by overwriting the htacces file. I'm pretty much screwed. The database shows that all the URL's are still there, so i'm looking for a way to ' fix ' the htaccess by somehow rewriting the whole file again based on whats stored in the database.

Is there a way or am i doomed to start reinventing the wheel again ? :(

Re:Joomsef Screwed - Lost htacces. 14 years, 4 months ago #13496

  • dajo
  • OFFLINE
  • Posts: 5069
Hello,

JoomSEF should work OK with the default .htaccess file:

RewriteEngine On
RewriteBase /

########## 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 set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a tag in URL
RewriteCond %{QUERY_STRING} (\|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
########## End - Rewrite rules to block out some common exploits

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]

Best regards,
ARTIO Support Team
ARTIO Support Team

Re:Joomsef Screwed - Lost htacces. 14 years, 4 months ago #13500

Yeah Thanks.

I figured out last night we have a simular site and comparing that htaccess plain works.

Replaced the file and the damn thing is working again!

-Solved.
  • Page:
  • 1
User Login Empty