.htaccess not working [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Server Fault. Closed 9 years ago. Improve this question I have this following in my .htaccess: Options +FollowSymlinks RewriteEngine On RewriteRule (.*)\.php$ index.php I just want to rewrite every .php file accessed … Read more

Mod Rewrite code with out changing the url in address bar

I When I call http://www.mysite.in/abc/xyz it shoud show up http://www.mysite.in/abc/xyz/index.php but the url shout not change in address bar and it should work with out “/” in the address. Please any one help me with .htaccess code for apache 2.2 Note: It should not list the directory content it should show up the page.. SEO … Read more

apache conf entry does not work but does in .htaccess [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Server Fault. Closed 6 years ago. Improve this question i am running: Server version: Apache/2.2.15 (Unix) i have a custom security conf file on a shared server. i placed the following entry … Read more

Display static pages with a RAND seed, expiry? [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Server Fault. Closed 10 years ago. Improve this question In Apache, is there any way (using scripts like CGI and PHP, etc.) that will fetch all static content (html, images, and files … Read more

How to change .htaccess file to work right in localhost? [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Server Fault. Closed 8 years ago. Improve this question I have this snippet code in my .htaccess file to prevent users from hotlinking the server’s images: RewriteEngine On RewriteCond %{HTTP_REFERER} ^$ [OR] … Read more

Redirect non www to www not working [duplicate]

This question already has answers here: Redirect, Change URLs or Redirect HTTP to HTTPS in Apache – Everything You Ever Wanted to Know About mod_rewrite Rules but Were Afraid to Ask (5 answers) Closed 7 years ago. I have created an .htaccess file with the following code in order to achieve this Options +FollowSymLinks RewriteEngine … Read more

apache virtual host config

hi im trying to ensure that my website is only accessed via https, and only through the www sub domain, im currently using the following apache virtual host config: <VirtualHost *:80> ServerAdmin admin@example.com ServerName example.com ServerAlias www.example.com # Redirect http requests to https RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule .* https://www.example.com%{REQUEST_URI} [R,L] RewriteCond %{HTTP_HOST} !=www.example.com … Read more

How to convert this Apache rewrite rule to Nginx

I’ve been struggling to convert my past Apache rewrite rule to Nginx (also not sure if I’m placing it in the right place so would appreciate if you can tell me where to place it). Basically, this was the Apache rewrite rule in my .htaccess file on WordPress: <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^/?hosts/(.*)$ /user/$1 … Read more

mod_rewrite to a specific page content

I want to redirect all pages other than index.php to a specific section inside the pages. Like this: example.com?pagerequest to example.com?pagerequest#navigation Answer Use something like this: RewriteCond %{REQUEST_URI} !=/index.html RewriteRule ^(.*)$ $1?%{QUERY_STRING}#navigation [R,NE] AttributionSource : Link , Question Author : Femtom , Answer Author : Krist van Besien