Archivo de la etiqueta: .htaccess
How to write htaccess wildcard condition
Tengo esta
#RewriteCond %{HTTP_HOST} ^([^.]+).localhost$ [NC]
#RewriteRule ^$ /s/index.php?s=%1 [L]
…
En este caso, whenever i called test.localhost for e.g., it will get content from localhost/s/index.php?s=test
Sin embargo, when i type www.localhost in the address bar, by right it should not Sigue leyendo
¿Qué está mal con mi subdominio reescritura de htaccess?
I want to rewrite www.domain.com/s/index.php?s=test into test.domain.com
I did it successfully in local host using the following.
RewriteCond %{HTTP_HOST} ^([^.]+).localhost$ [NC]
RewriteRule ^$ /s/index.php?s=%1 [L]
…
Sin embargo, when i put it live on my server, it didnt work. below is the Sigue leyendo
No se puede ejecutar archivos externos de PHP (CodeIgniter)
I am using codeigniter for my application and it works fine in localhost and in development server. I am hiding the index.php using following .htaccess
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?/$1 [L]
…
Mod-rewrite.htaccess not working
Hi I previously posted a question on to Stack Over flow and was lucky enough to receive some assistance to my initial question which helped me better understand that what i was trying to achieve was possible.
The previous question… Sigue leyendo
Lo he intentado todo, por favor ayuda. After moving WordPress, category archives are broken
I just moved my WordPress site to a different server and url. All the posts are showing up in the dashboard, and I can view them individually on the site, but they aren’t showing up on the category archives.
Para… Sigue leyendo
Write an .htaccess rewrite rule excluding one file
I’m working with a framework and need to make a call to a specific file within a directory, however the directory is set up for url of all requests to index.php for the framework’s sake.
I have a file called… Sigue leyendo
Use .htaccess to limit access based on referrer?
I want to use .htaccess rules to beef up security for WordPress my blog. Fundamentalmente, I want to forbid the connection when:
useragent is empty
referrer string is empty
referrer string to a few selected php files is NOT from… Sigue leyendo
Rastreable AJAX con _escaped_fragment_ en htaccess
Hello fellow developers!
We are almost finished with developing first phase of our ajax web app.
In our app we are using hash fragments like:
http://ourdomain.com/#!list=last_ads&order=date
I understand google will fetch this url and make a request to the server… Sigue leyendo
using .htacces to rewrite URLs with query strings
I have a page which is www.example.com/page_name.php?var1=dynamic_var1&var2=dynamic_var2
I want to use .htaccess file to make it look like this
www.example.com/page_name/dynamic_var1/dynamic_var2
I have tried this so far
RewriteRule ^page_name/(.*)/(.*)$ page_name.php?var1=$1&var2=$2 [NC]
…
and the problem is when this is going to database Sigue leyendo
Usando. Htaccess para reescritura de URL en las ventanas
I have have turned mod_rewrite on in a windows machine and created .htaccess in the root directory of my website, now after i wrote FAIL in it it gave me an internal server error then i replaced the code with… Sigue leyendo





