Joomla Indonesia

Login or Sign Up
Sign In or Register
Avatar
Not Registered Yet?

Join Now! It's FREE. Get full access and benefit from this site

Reset My password - Remind Me My username

Username
Password
Remember me
  • Page:
  • 1

TOPIC: redirect web pake htaccess

redirect web pake htaccess 12 years 11 months ago #6981

  • diknyo
  • diknyo's Avatar
  • OFFLINE
  • Warga Joomla
  • Posts: 19
  • Karma: 0
gimana cara redirect web pake htaccess
kemarin udh diajarin tapi kok ga bisa

isi htaccessnya seh kayak gene :
RewriteEngine on


order allow,deny
allow from all


deny from 217.93.219.200
deny from 193.200.51.235
deny from 66.249.65.198
deny from 81.95.146.126
deny from 62.231.243.136
deny from 61.94.124.64
RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^mail-admin/?$ http://mail-admin.xxxxx**/cgi-bin/qmailadmin [R=301,L]

deny from 80.56.27.117
deny from 64.208.172.177
deny from 81.95.151.51
deny from 72.232.7.10
deny from 81.95.151.133
deny from 81.95.151.52
The administrator has disabled public write access.

Re:redirect web pake htaccess 12 years 11 months ago #7120

  • ewien
  • ewien's Avatar
  • OFFLINE
  • Pejuang Joomla
  • Posts: 61
  • Karma: 0
pakai servernya apa bro?
setau saya metode redirect seperti itu hanya bisa jalan di server Linux dengan Apache Mod-Rewrite moduled enabled.
The administrator has disabled public write access.

Re:redirect web pake htaccess 12 years 11 months ago #7192

  • rajasetan
  • rajasetan's Avatar
  • OFFLINE
  • Id-Joomla Team
  • Posts: 1868
  • Thank you received: 5
  • Karma: 66
Apa yang mau di-redirect kemana?
The administrator has disabled public write access.

Re:redirect web pake htaccess 12 years 11 months ago #7356

  • diknyo
  • diknyo's Avatar
  • OFFLINE
  • Warga Joomla
  • Posts: 19
  • Karma: 0
jadi misal kalo buka www.abc.com tuh langsung lari ke halaman www.abc.com/new gitu...gimana tuh ?
The administrator has disabled public write access.

Re:redirect web pake htaccess 12 years 11 months ago #7359

  • arieonline
  • arieonline's Avatar
  • OFFLINE
  • Administrator
  • Posts: 2988
  • Karma: 98
redirect kan ?

bikin file index.php di /

yg isinya
The administrator has disabled public write access.

Re:redirect web pake htaccess 12 years 11 months ago #7373

  • rajasetan
  • rajasetan's Avatar
  • OFFLINE
  • Id-Joomla Team
  • Posts: 1868
  • Thank you received: 5
  • Karma: 66
Ini contekanku ... dulu dapet dari web (lupa alamat tepatnya).
# Turn on rewrites.
RewriteEngine on

# Only apply to URLs on this domain
RewriteCond %{HTTP_HOST} ^(www.)?domain.com$

# Only apply to URLs that aren't already under folder.
RewriteCond %{REQUEST_URI} !^/folder/

# Don't apply to URLs that go to existing files or folders.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Rewrite all those to insert /folder.
RewriteRule ^(.*)$ /folder/$1

# Also redirect the root folder.
RewriteCond %{HTTP_HOST} ^(www.)?domain.com$
RewriteRule ^(/)?$ folder/index.php [L]

domain dan folder silakan diganti dengan nama domain dan folder.
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 0.077 seconds

Diskusi Terakhir

Joomla User Group Indonesia

Joomla User Group indonesia

Id-joomla.com adalah situs resmi Joomla User Group (JUG) Indonesia dan Joomla Translation Team

 
Download Terjemahan Joomla terakreditasi dari JoomlaCode dan laporkan bugs, ide dan saran nya di Sub Forum Hanacaraka

Socials

twitter id joomlafb idjoomla