Tagged Questions

The .htaccess file is a configuration file for the Apache web server, allowing configuration settings to be made at a directory-specific level, overriding the server-wide or site-level settings in the main Apache config. Most (though not all) Apache settings can be configured in .htaccess. One of ...

learn more… | top users | synonyms (1)

0
votes
2answers
15 views

Rewrite a URL to include GET data (with Drupal)

I'm relatively new to both .htaccess and regular expressions, but I really need to do the following. I'm using Drupal for my website (I don't know if the affects anything) but I've wrote a small PHP ...
0
votes
1answer
10 views

Prevent Direct Access to inde.php via the browser

I am making n alcoholic site that has a gateway for age verification wish is called default.html an it's in the root of my webspace. I have used Joomla which has two index files, one from the root ...
1
vote
1answer
17 views

how to restrict the site from being indexed

I know this question was being asked many times but I want to be more specific. I have a development domain and moved the site there to a subfolder. Let's say from: http://www.example.com/ To: ...
0
votes
0answers
7 views

Anchor Link to Flat URL

I have been researching for a solution for the last 4 hours. I have a carousel that slides different content blocks on the same page. So my pages look like domain.com/index.php#product ...
0
votes
1answer
11 views

htaccess rewrite condition and rewrite rule for redirecting to a page using a particular name having peroids

I have a link http://mysite.com/username which redirects to profile page of current username.. My htaccess code for this link is : RewriteCond %{REQUEST_URI} ^/(\w+)/?$ [NC] RewriteRule ^ ...
2
votes
2answers
20 views

achive the url pattern when form is submitted

How can achive the url pattern when form is submitted index.php <form name="search_form" method="get" action="search-jobs/"> Skills : <input type="text" name="skills" /> Location : ...
0
votes
0answers
9 views

How to rewrite Content-Type header for audio request

how can I rewrite Content-type header for mp3 requests from "audio/mpeg" to "audio/mp3"? I've tried: RewriteRule ^(.*)+\.mp3$ - [L,T=audio/mp3] Or <FilesMatch "(\.mp3)$"> Header set ...
0
votes
1answer
16 views

magento bae url not working after dulicate site

I have a site http://www.gingerlily.fr i copy those file and create sub directory on root called test and uploaded the file to it duplicated db and apply update for all base url db and other ...
0
votes
0answers
18 views

Redirect subdomain to specific URL via htaccess

I've seen hundred of examples, but I can't adapt them to my case. I need to redirect (via htaccess) from radio.mysite.com:8000 to www.mysite.com:8000/radio.pls Can somebody help please? Thanks!! ...
-1
votes
1answer
8 views

Turn SSL off in certain virtual directory

I want to turn ssl off in a virtual directory - cron some urls that need to run via http are for example /cron/one , /cron/two or /cron/three I'm using this rewrite to force ssl RewriteCond ...
0
votes
3answers
34 views

Forcing urls to rewrite/redirect?

This rewrite methode works, but its not Forcing urls to rewrite/redirect to the new urls. I use this: RewriteEngine on RewriteRule ^page/([^/\.]+)$ search.php?q=$1 i can access rewrited urls ...
0
votes
0answers
12 views

Overwrite parent htaccess

I have my hosting setup right now on HostGator. I have an install of wordpress in my root directory (www/) and inside it there must be a .htaccess for wordpress to work right. The contents of this ...
0
votes
1answer
23 views

Magnto URL issue after copy to subdirectory

I copy magento intallation from root to subdirectory database also copid, then added the copied databas and chnaged the paths, but problem is stil showing old site link on menu bars and every where, ...
2
votes
2answers
17 views

Is it possible to block access to files based on their size using .htaccess?

In particular, I need to deny access to large photos (larger than 1mb). I can't deny access to all images in the folder since the engine (WP) takes smaller, resized, images from the same folder. I ...
2
votes
1answer
25 views

How do I replace an underscore “_” to a “/” using htaccess?

It is possible to replace the underscore "_" to a "/" using htaccess? Example, I want this http://example.com/empresa_historia-da-empresa.php Stay well http://example.com/empresa/historia-da-empresa ...

1 2 3 4 5 725
15 30 50 per page