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

Regular expression for 301 redirect url

I want to detect{randomString}/F12345-random-key-word/ pattern URL and then apply 301 redirect to{random-key-word}/F12345/ in .htaccess file. Can anyone help me on rewrite rule here? Here F12345-{random-key-word} a...
more »

2017-11-14 22:11 (0) 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

HTTP Error 500.52 - URL Rewrite Module Error

URL routing is working fine but when i create application in IIS website, application stop working with error HTTP Error 500.52 - URL Rewrite Module This rule is working fine (http://abcd/) <rule name="AngularJS Routes" stopProcessing="fals...
more »

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

Conditional url rewrite and proxy

I have a Javascript app, and for Social Sharing puposes I would like to return the result form another server when the facebook crawler visits the page. Basically, if I detect a Social bot, I would like to do: GET
more »

2017-08-28 17:08 (0) 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

Angular HTML5Mode - Rewrite rule

I'm experiencing a pathing issue when I refresh a tab on my site: I copied this rewrite rule from github: <rule name="Main Rule" stopProcessing="true"> <match url=".*" /> <conditions logicalGrouping="MatchAll"&g...
more »

2017-06-12 19:06 (2) Answers

IIS 6.1 URL Rewrite without product ID

Please, how to write a rule in IIS 6.1 to avoid use the product ID or category ID in the friendly url? Ugly url Friendly url with ID Desired url http://www.exam...
more »

2017-05-04 00:05 (0) 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

convert url using htaccess ...remove and add words

This is the url of page. I want a little bit change into this url. I want this url like this. and for this my htaccess code is this. RewriteEngine On Rew...
more »

2017-02-26 07:02 (0) Answers

Rewrite parts of SEO friendly URL in Nginx

i have a URL like this Example and Is it possible to make my URLs to this URLs? and http:/...
more »

2016-11-08 08:11 (0) Answers

generate the seo friendly url using htaccess

I am using simple php. I want to access this url (http://localhost/url/test.php?id=10) like this http://localhost/url/test.php/id/10 but i faced problem in this my htaccess file look like this RewriteCond %{HTTP_HOST} ^$ RewriteRule ^localhost/...
more »

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

How to modify piwigo seo urls?

The piwigo seo urls is not very clean and include some unwanted words. I want to modify and delete unwanted words in the urls. *The first question is: How to modify sequence of image and category name in the urls? from
more »

2016-09-15 02:09 (0) Answers

WHMCS rewrite cart URL

I am using WHMCS on a site I have setup some product-groups: for Cheap Hosting and some more with cart.php?gid=2 and cart.php?gid=3 This URLs are not SEO friendly and I want new URLs like https:...
more »

2016-09-09 12:09 (0) Answers

Riddle with routing in PHP

I made simply router with htaccess and PHP. But this way made impossible to set additional GET parametr in url. .htaccess RewriteEngine On [...] RewriteCond %{REQUEST_URI} !\.(gif|jpg|png)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_...
more »

2016-09-04 10:09 (2) Answers

URL SEO Weight-age based on URL pattern

Pl. suggest which of the following url will have more SEO accessibility: Can an "SEO Friendly" url contain a unique ID? or or
more »

2016-08-31 09:08 (0) Answers Dynamic page Creation issues

I created a aspx blog website which creates page dynamically. and uses unique id generated at the time of page creation as it's name. eg:
more »

2016-08-26 13:08 (2) Answers

"add_query_arg" and SEO

I use add_query_arg to pass a variable from one page to another: <a href="<?php echo esc_url( add_query_arg( 'country', $c, get_permalink(14) ) ); ?>">Contact</a> That gives me this type of URL:
more »

2016-08-16 12:08 (0) Answers

URL Rewriting not working

I just can’t figure out why RewritePath method is not working in this code. When I try to browse the Project from ProductPage.aspx page, the URL in address bar is still shown as http://localhost:44789/ProductPage.aspx instead of being like this: h...
more »

2016-08-11 18:08 (1) Answers