Tag Archives: .htaccess

How to write htaccess wildcard condition

I have this

#RewriteCond %{HTTP_HOST} ^([^.]+).localhost$ [NC]
#RewriteRule ^$ /s/index.php?s=%1 [L]

In questo caso, whenever i called test.localhost for e.g., it will get content from localhost/s/index.php?s=test
Tuttavia, when i type www.localhost in the address bar, by right it should not Continua a leggere

Tagged , | Lascia un commento

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]

Tuttavia, when i put it live on my server, it didnt work. below is the Continua a leggere

Tagged | Lascia un commento

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]

Il mio Continua a leggere

Tagged , , , | Lascia un commento

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 questionContinua a leggere

Tagged , , , | Lascia un commento

I have tried everything, per aiutare i. 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.
Per… Continua a leggere

Tagged , , , | Lascia un commento

Scrivere un file. Regola di riscrittura escluso un file htaccess

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 calledContinua a leggere

Tagged , , , | Lascia un commento

Use .htaccess to limit access based on referrer?

I want to use .htaccess rules to beef up security for WordPress my blog. Fondamentalmente, I want to forbid the connection when:

useragent is empty
referrer string is empty
referrer string to a few selected php files is NOT fromContinua a leggere

Tagged , , , , | Lascia un commento

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 serverContinua a leggere

Tagged , , , , | Lascia un commento

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 Continua a leggere

Tagged , , | Lascia un commento

Uso. Htaccess per riscrivere URL su 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 withContinua a leggere

Tagged , , , , | Lascia un commento
31 pagine