Note that there are some explanatory texts on larger screens.

plurals
  1. POwant to hide page.html in the end of the url by modifying htaccess
    text
    copied!<p>can somebody help me redirect the url in htaccess. as in the links below its showing page.html in the end, which i want not to appear, is it possible by changing anything in the htaccess, also in many urls % is showing quite a lot, which i also want to change either to / or any other charecter to look appropriately.</p> <pre><code>http://www.domain.com/98-three-wheelers/listings.html http://www.domain.com/63-we-are-currently-looking-for-customer-care-executive-for-a-call-center-in-ahmedabad/details.html </code></pre> <p>the htaccess i am using is below:</p> <pre><code>RewriteRule ^index.html index.php [nc] RewriteRule ^recent_ads.html recent_ads.php [nc] RewriteRule ^register.html register.php [nc] RewriteRule ^pre-register.html pre-register.php [nc] RewriteRule ^login.html login.php [nc] RewriteRule ^logout.html logout.php [nc] RewriteRule ^favorites.html favorites.php [nc] RewriteRule ^contact.html contact.php [nc] RewriteRule ^listings.html listings.php [nc] RewriteRule ^pre-submit.html pre-submit.php [nc] RewriteRule ^refine.html refine.php [nc] RewriteRule ^([0-9]+)-([^\/]+)?/content.html$ content.php?id=$1 [nc,qsa] RewriteRule ^([0-9]+)-([^\/]+)?/index.html$ index.php?category=$1 [nc,qsa] RewriteRule ^([0-9]+)-([^\/]+)?/details.html$ details.php?id=$1 [nc,qsa] RewriteRule ^([^\/]+)/([^\/]+)/([^\/]+)/recent_ads.html$ recent_ads.php?page=$1&amp;order=$2&amp;order_way=$3 [nc,qsa] RewriteRule ^([^\/]+)/recent_ads.html$ recent_ads.php?page=$1 [nc,qsa] RewriteRule ^([0-9]+)-([^\/]+)?/user_listings.html$ user_listings.php?id=$1 [nc,qsa] RewriteRule ^([0-9]+)-([^\/]+)?/contact_details.html$ contact_details.php?id=$1 [nc,qsa] RewriteRule ^([0-9]+)-([^\/]+)?/([^\/]+)/([^\/]+)/([^\/]+)/user_listings.html$ user_listings.php?id=$1&amp;page=$3&amp;order=$4&amp;order_way=$5 [nc,qsa] RewriteRule ^([0-9]+)-([^\/]+)/([^\/]+)/user_listings.html$ user_listings.php?id=$1&amp;page=$3 [nc,qsa] RewriteRule ^([^\/]+)/([^\/]+)/([^\/]+)/favorites.html$ favorites.php?page=$1&amp;order=$2&amp;order_way=$3 [nc,qsa] RewriteRule ^([0-9]+)-([^\/]+)?/store.html$ store.php?id=$1 [nc,qsa] RewriteRule ^([0-9]+)-([^\/]+)?/([^\/]+)/([^\/]+)/([^\/]+)/store.html$ store.php?id=$1&amp;page=$3&amp;order=$4&amp;order_way=$5 [nc,qsa] RewriteRule ^([0-9]+)-([^\/]+)/([^\/]+)/store.html$ store.php?id=$1&amp;page=$3 [nc,qsa] </code></pre> <p>also see in the link below too many % percenta is getting used in the url, can i change this to something else like / without changing the motive of the url, is it possible to make changes in the htaccess alone for achieving this all?</p> <pre>.com/147-apartments-for-rent/no_of_rooms-1%20BHK/area_sq_ft-SQFT%20Less%20than%20500/condition_vehicles-New/listings.html</pre> <p>suppose this all is bein used to construct url</p> <pre>{capture name=some_content assign=constructed_url}{$live_site}/listings.php?page=1{foreach from=$post_array key=k item=x name=construct_url}{if $x!='' && $k!=$v.depending.caption2 && $k!=$v.depending.caption3 && $k!=$v.depending.caption4 && $k!="page" && $k!="show" && (!$settings.enable_locations || (!in_array($k, $location_fields) && $k!="crt_city"))}{$separator}{$k}={$x|replace:'/':'--'|urlencode}{assign var="separator" value="&amp;"}{/if}{/foreach}{/capture}</pre> <p>what will need to changed in the code..please don't mind i am new in the line of programming, have just started learning the things....</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload