FAQ Database Discussion Community


How to write my rewriterule so I can have friendly url

.htaccess,seo,rewrite,opencart,friendly-url
My SEO expert asked me to do HTTP 301 redirect to a friendly URL in an Opencart installation. This Opencart installation use SEO url so I have this url (native url in opencart) : http://www.qcbikeshop.com/index.php?route=information/information&information_id=9 and the SEO url is : http://www.qcbikeshop.com/Livraison-Gratuite However, my SEO expert want me to do...

Flask - how to get query string parameters into the route parameters

flask,query-string,friendly-url
Im very much new to Flask, and one of the starting requirements is that i need SEO friendly urls. I have a route, say @app.route('/sales/') @app.route(/sales/<address>) def get_sales(addr): # do some magic here # render template of sales and a simple GET form that submits an address. <form action={{ url_for('get_sales')...

ASP.NET WebForms FriendlyUrls File / Folder conflict

c#,asp.net,routing,friendly-url
I'm facing a problem with Microsoft.AspNet.FriendlyUrls. I have a page with user management, so the user can edit his own profile and so on.. I want the URLS to be like this: somesite.com/User (Users Dashboard) somesite.com/User/Profile (Users Profile) Now having a page named User.aspx and a folder named User with...

Prevent home (welcome file) URL from changing to full URL when submitting a JSF form

jsf,jsf-2,friendly-url
I've a welcome file <welcome-file-list> <welcome-file>configurationClass.xhtml</welcome-file> </welcome-file-list> It is opening properly on start with url "http://127.0.0.1:8080/fav/". Then in my page, i am having a sortable table which is calling to a method sortFavs() present in my class. And i am returning null from server method. So url is changing to...

Is it possible in laravel 5 to show a pretty url to the user, and a practical url to the app?

routing,routes,laravel-5,friendly-url,slug
I have this url: mywebsite.com/user/1/edit I want my users to see this: mywebsite.com/edit-your-profile/ Is this possible when using Route::resource('user', 'UserController');? If yes, how do I do it :) ? I still want my app to be able to see user/1/edit as I use it in my middleware to prevent unauthorized...

Yii2 rewrite URLs with query string to be SEO

.htaccess,yii2,friendly-url
What I have could able to make pretty URL in Yii example.com/readings/view?BookID=9955 First, readings is my default controller, so I don't want its actions to be prefixed by its name i.e: example.com/view?BookID=9955 Second I need to neglect ?BookID= to be: example.com/view/9955 Also I have books paging: example.com/readings/view?BookID=9955&start=2 I need it...

ASP Classic Friendly URLs via Custom Error Pages

asp-classic,seo,friendly-url
I want to beautify my URLs and make them SEO-friendly. I've encountered numerous methods doing so including several IIS modules, and creating a custom error page with a response.transfer redirect to "original" url (http://evolt.org/search_engine_friendly_urls_with_iis_and_classic_asp/) I've actually implemented the last method and it works well, but I want to ask: Isn't...

Change the unique generated title names of friendly-id using attribute of another table

ruby-on-rails,ruby,seo,friendly-url,friendly-id
I have a Company Model, and i am using friendly_id like this friendly_id :name, use: :slugged But since there can be many Company with the same name (different branches). I am trying to handle that case by using city attribute from the address of the Company. But the Company address...

Joomla taks works with Friendly url OFF but do not with Friendly url ON

joomla,friendly-url,joomla-task
I have trouble with joomla 3.3.3 site. When my Firendly url is off this url with task works fine <a href="<?php echo Juri::root(); ?>index.php?option=com_ezwatchlists&amp;task=delete&amp;rowid=<?php echo $row->id; ?>"><?php echo JText::_('EZWATCHLISTS_DELETE')?></a> but when i turn ON Friendly url task is ignored. NOTICE: When I look in file inspector I see link like...

Root with slug rails 4 routing

ruby-on-rails,ruby,friendly-url,friendly-id
Currently I'm using friendlyID gem and I just want to redirect my application to a root with slug if the user is authenticaated. url http://localhost:3000/companyABC/dashboard Here's my current code authenticated :employer do root to: redirect("/:slug/dashboard"), as: :employer_root end namespace :company, path: "/:slug" do resources :dashboard namespace :settings do resources :collaborators...

Reroute query string using friendlyUrl

asp.net,webforms,friendly-url
I am trying to rewrite my URLs when I make a search. But I can't even get the segments out of my URL, or maybe there are no segments but then I dont knwo how to change it. How I try to get segments in Find.aspx pageload: IList <string> segments...

Is it possible to allow only the correct pretty url?

php,apache,.htaccess,mod-rewrite,friendly-url
I have these pretty urls: app/category/overview app/category/new app/category/edit/4 app/product/overview app/product/new app/product/edit/4 .htaccess RewriteEngine On RewriteRule ^([a-z]+)/([a-z]+)/?([0-9]*)$ index.phpcontroller=$1&action=$2&id=$3 [NC,L] Is it possible to define that any other other url goes back to the index? p.e. app/i/am/the/fastest/man/alive ---> app/ Help would be much appreciated!...

htaccess mod_rewrite and 301 redirect to friendly url

.htaccess,mod-rewrite,redirect,seo,friendly-url
Now, I'm trying to write some htaccess code with mod_rewrite. I have problem with it :( RewriteEngine On RewriteRule ^home$ index.php?page=home This is my code in .htaccess file. When I go to domena.com/index.php?page=home it's exactly same like domena.com/home But, It's not friendly for google, 'cos we have double page: domena.com/index.php?page=home...