Tag Archives: .htaccess

How to write htaccess wildcard condition

J'ai cette

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

Dans ce cas,, whenever i called test.localhost for e.g., it will get content from localhost/s/index.php?s=test
Cependant, when i type www.localhost in the address bar, by right it should not Continuer la lecture

Tagged , | Laisser un commentaire

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]

Cependant, when i put it live on my server, it didnt work. below is the Continuer la lecture

Tagged | Laisser un commentaire

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]

Ma Continuer la lecture

Tagged , , , | Laisser un commentaire

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 questionContinuer la lecture

Tagged , , , | Laisser un commentaire

J'ai tout essayé, s'il vous plaît aider. 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.
Pour… Continuer la lecture

Tagged , , , | Laisser un commentaire

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 calledContinuer la lecture

Tagged , , , | Laisser un commentaire

Use .htaccess to limit access based on referrer?

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

useragent is empty
referrer string is empty
referrer string to a few selected php files is NOT fromContinuer la lecture

Tagged , , , , | Laisser un commentaire

Crawlable AJAX avec _escaped_fragment_ dans htaccess

Bonjour collègues développeurs!
Nous avons presque terminé d'élaborer la première phase de notre application Web AJAX.
Dans notre application, nous utilisons des fragments de hachage comme:
http://ourdomain.com / #!list = last_ads&date = ordre
Je comprends google va chercher cette url et faire une demande au serveur… Continuer la lecture

Tagged , , , , | Laisser un commentaire

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 Continuer la lecture

Tagged , , | Laisser un commentaire

En utilisant. Htaccess pour réécriture d'URL sur les fenêtres

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 withContinuer la lecture

Tagged , , , , | Laisser un commentaire
31 pages