Jump to content

Redirectionare Fisier Catre Index


C)zy

Recommended Posts

Pentru a redirectiona accesarea folder-ului admin, catre un alt fisier, folosesti linia de mai jos in .htaccess:

RedirectMatch 301 ^/admin/ http://www.csmaniack.com/404.html
Ideea e ca atunci cand vei accesa www.csmaniack.com/admin vei fi si tu redirectionat catre pagina 404, deci, nu cred ca vrei asta. Asadar, in momentul de fata vad ca mie imi este interzis accesul catre pagina www.csmaniack.com/admin: You don't have permission to access /admin on this server., solutia fiind gasita probabil aici: , mai exact:
deny from all
allow from 192.126.12.199
[/code] sau
[code]<Files admin.php>
order allow,deny
deny from all
allow from 192.126.12.199
</Files>

* unde 192.126.12.199 este IP-ul (exemplu) tau.

Te-ai inregistrat? Ne-ar placea sa te prezinti.

Cum pot sustine forumul?
Cumpara de la eMag folosind acest link.
--------------------
oG2BN9d.gifse1WdXd.gifQG6MtmI.gifRHYjDzD.gifG5p1wui.gif

Link to comment
Share on other sites

  • 1 year later...

Pe localhost mi se pare ca nu e activat by default fisierul .htaccess. Vezi si pe aici:

 

http://www.hotscripts.com/forums/web-servers/32169-solved-htaccess-not-working-localhost.html

https://forums.digitalpoint.com/threads/htaccess-on-localhost.13129/

http://www.kirupa.com/forum/showthread.php?322101-Enable-htaccess-on-localhost

 

A, acum am citit mai bine, tu vrei din folder in folder? Daca vrei din folder in folder, incearca:

RewriteEngine on
RewriteBase /
RewriteRule ^old_dir/(.*) http://www.example.com/new_dir/ [R=301,L]

Te-ai inregistrat? Ne-ar placea sa te prezinti.

Cum pot sustine forumul?
Cumpara de la eMag folosind acest link.
--------------------
oG2BN9d.gifse1WdXd.gifQG6MtmI.gifRHYjDzD.gifG5p1wui.gif

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.