Tag Archives: .htaccess
How to write htaccess wildcard condition
Eu tenho esse
#RewriteCond %{HTTP_HOST} ^([^.]+).localhost$ [NC]
#RewriteRule ^$ /s/index.php?s=%1 [L]
…
Neste caso, whenever i called test.localhost for e.g., it will get content from localhost/s/index.php?s=test
Contudo, when i type www.localhost in the address bar, by right it should not Continue lendo
What is wrong with my htaccess subdomain rewrite?
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]
…
Contudo, when i put it live on my server, it didnt work. below is the Continue lendo
Can't execute external PHP files (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]
…
Meu Continue lendo
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… Continue lendo
Eu tentei tudo, por favor me ajude. 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… Continue lendo
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… Continue lendo
Use .htaccess to limit access based on referrer?
I want to use .htaccess rules to beef up security for WordPress my blog. Basicamente, 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… Continue lendo
Crawlable AJAX with _escaped_fragment_ in 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… Continue lendo
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 Continue lendo
Usando. Htaccess para reescrever URL no Windows
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… Continue lendo





