Questions tagged as 'htaccess'

2
answers

How to have multiple domains using the same shared hosting?

I have a shared hosting account, and I need to add one more domain to it. The only way to do this where I'm hosting my site is through domain mapping , where I can have multiple domains pointing to the same site unless I open another account an...
asked by 16.03.2016 / 18:47
1
answer

How to change .htaccess content via php?

I wanted to know if there is any way to change .htaccess via php. An example of what I want is that by htaccess I can restrict the access of a given ip with the command: deny from 67.114.135.60 If I wanted to "unlock" user access via php...
asked by 16.03.2016 / 15:22
1
answer

any .htaccess file gives 500 error how to solve?

Does any .htaccess file give 500 error how to resolve? Whenever I put a .htpaccess file it always gives error this is the code <IfModule mod_rewrite.c> RewriteEngine on # Redirect to domain with www. RewriteCond %{HTTPS} off...
asked by 04.03.2016 / 01:38
1
answer

Hide URL folder [duplicate]

I am having trouble adapting this code, my site is in a folder called site I want to hide this folder and leave everything if it was in the root, until then it works, the problem is when I go to the 'admin' folder when I error 404 logo, can so...
asked by 22.01.2016 / 21:07
1
answer

How to reuse my .htaccess

I have the following file RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php I can access the page without the extension. I would like to know how to pass the following url...
asked by 05.02.2016 / 18:03
1
answer

Difficulty in making RewriteEngine work

I need to use this command below. On my server it works fine, but when I went to install that same line of error on the whole site. I need this because the command will come in differently and I want to mask the original system url. Type:...
asked by 11.12.2015 / 13:02
0
answers

Redirect url "cut" to canonized url (Avoid duplicate url)

What are the settings in .htaccess so that the url cropped type: link automatically redirect to the canonized (entire) url of the page: link Preventing Google from indexing the two pages.     
asked by 05.12.2015 / 05:23
1
answer

htaccess does not work for wp super cache plugin

I installed the wp super cache plugin for wordpress on the server and it works fine. But I can not figure out why my .htaccess rules do not work for the homepage. I make rewrite of the requests for the subdomain www to a folder with a install...
asked by 20.01.2016 / 14:58
0
answers

How can I make this url friendlier yet?

I am developing this site and studying a bit about friendly url's already who was a Wordpress user and now I'm moving on to frameworks and systems. What I want to know is if the url shown below may be even friendlier. The method I origina...
asked by 15.11.2015 / 18:54
0
answers

How to access a page through dynamically friendly urls?

Well, I must be wanting something very complicated for a beginner but come on ... I am starting a system where I need to create dynamic and friendly urls to register all the information about a page in the database and call this information w...
asked by 29.10.2015 / 01:49