Removing any text after .html in url

I have following rewrite rules for nginx. rewrite ^/(.*)/(.*)/(.*).html$ /index.php?first=$1&second=$2&third=$3 last; rewrite ^/(.*)/(.*).html$ /index.php?first=$1&second=$2 last; rewrite ^/(.*).html$ /index.php?first=$1 last; They wo...
more »

2017-11-29 20:11 (0) Answers

Viewvc 404 Error when 403 is expected

I am trying to access a viewvc URL, which authenticates from svn_authz. I get the below error message: An Exception Has Occurred The root "my_svn_repo" is unknown. If you believe the value is correct, then ...
more »

2017-11-28 08:11 (0) Answers

Apache Mod_Rewrite Define URL Variables

I've search high and low for a solution to this. More than likely I'm just not using the right keywords. I'm trying to rewrite some image urls to clean them up. Easy stuff. I've managed to get urls from
more »

2017-11-10 19:11 (1) Answers

.htaccess rewrite every request to index.php

I'm using .htaccess for the first time and I'm encountering a loop problem. I'm trying to achieve the following: rewrites to rewrites to
more »

2017-10-15 05:10 (1) Answers

URL Rewriting from .htaccess with Symfony Routing

I have some trouble RewritingUrl with Symfony (2.8) My objective is to redirect some URL without having them changing in the browser bar. I need this so the URL may have a custom, human-readable form, and being shareable. The URL is also used in ...
more »

2017-10-04 09:10 (1) Answers

.htaccess rewrite with WordPress plugin

I am working on building a WordPress plugin for a custom WordPress multisite network and have a few files that use URL variables to load information from a second database (not the WordPress database). In the version built outside of WordPress by n...
more »

2017-09-27 02:09 (2) Answers

htaccess rewrite #section to /section

I have a problem with htaccess I'm making a website for a Youtube creator and to improve my SEO I need some htaccess rule so it likes that the users vists another page (that improves Google Listing) My website contains sections (like <section id...
more »

2017-08-23 21:08 (0) Answers

Language redirection with mod_rewrite

I'm totally clueless when it comes to mod_rewrite, so I'll be glad to get any help. I just want Apache to redirect my homepage according to the detected country language. My PHP is auto-translating in multiple languages and I'm trying to avoid multi...
more »

2017-08-20 22:08 (1) Answers

Apache ModRewrite keeps redirecting

I'm trying to setup a site on my local Windows machine (PHP, Apache 2.4) and my redirect rules are creating an inifinite loop. I can't figure out why. My hosts file: learn.loc www.learn.loc My Apache httpd-vhosts.conf: &l...
more »

2017-08-07 16:08 (1) Answers

htaccess redirection for seo purpose

When i type url/pricing.php it redirects me to the url/pricing.php .I would like to rediect all other php pages to the no extension url to diplay the php file for seo purpose (EX: url/pricing.php to url/pricing). I have added htaccess code for hide ...
more »

2017-05-31 07:05 (0) Answers

Joomla link more seo friendly

I have an online shop that use joomla with virtuemart plugin. now my categories have links like i want to trasnform link to (removing "category") any solutions? thanks. ...
more »

2017-05-25 16:05 (0) Answers

Not able to access Subfolders | Php framework

I am editing a site that is made using some framework on PHP doesn't show which. All the public files like CSS,JS are inside a Public directory. I want to upload a separate site within the domain like i have created the folder ...
more »

2017-05-13 14:05 (3) Answers

Rewriting $_GET parameters as SEO friendly?

I want to rewrite my URL so that instead of page.php?id=XXX&server=YYY&realm=ZZZ It shows page/XXX/YYY/ZZZ.php I know how to do it using mod_rewrite, but only for one parameter, not 3. How would a rewrite code for this look like? ...
more »

2017-03-13 15:03 (0) Answers

.htaccess changes my index to a relative page

We all know that is not an SEO friendly website, So I'm writing a .htaccess MODrewrite to make the username variable seem like a $_GET variable of the index file like the the profile.php file was not ther...
more »

2017-03-12 00:03 (1) Answers

.htaccess seo friendly url not found issue

I am trying to create SEO Friendly URL using htaccess php. Here is the original URL : expected SEO Friendly URL : Using the ...
more »

2016-12-11 10:12 (1) Answers

.htaccess to many parameters in multilang version

This is my .htaccess file: AddHandler application/x-httpd-php56 .php Options +FollowSymLinks RewriteEngine On RewriteBase / RewriteCond %{QUERY_STRING} !lang=(de|en|es|fr|nl|pl|ru|se) RewriteRule ^$/ [R=301,L] RewriteRule ^(de|en|es|fr|nl|pl|ru|se)$...
more »

2016-12-08 15:12 (1) Answers

Forbid access to website through IP server

I am hosting my website on my Debian server. My website is accessible by is domain name But nothing prevents users to access the website by the IP of the server /myhostname, so http://serveripadress/domainname/ I put a Op...
more »

2016-11-27 17:11 (1) Answers

Semantic URL-SEO mod rewrite

I need to change an url like this: to this: as I need to create quite a few offers, I guess I have to create 1 rule per offer in the .htacces? Does anyone knows what do I need to change i...
more »

2016-11-17 14:11 (0) Answers