Change Media Wiki urls to - instead of _
-
Is there a way to do this?
I have a new wiki set up at http://hiddentriforce.com/zelda-wiki/index.php/Main_Page
I want to change the default underscores to hyphens. This is what I have been trying
Options +FollowSymLinks
RewriteEngine On
RewriteBase /RewriteRule !.(html|php)$ - [S=4]
RewriteRule ^([^]*)([^]*)([^]*)([^]*)(.)$ $1-$2-$3-$4-$5 [E=uscor:Yes]
RewriteRule ^([^_])([^])([^])(.*)$ $1-$2-$3-$4 [E=uscor:Yes]
RewriteRule ^([^])([^])(.*)$ $1-$2-$3 [E=uscor:Yes]
RewriteRule ^([^])_(.)$ $1-$2 [E=uscor:Yes]RewriteCond %{ENV:uscor} ^Yes$
RewriteRule (.*) http://hiddentriforce.com/zelda-wiki/index.php/$1 [R=301,L] -
Hi Noah,
I suggest you stop by Stackoverflow (http://stackoverflow.com/), where development questions can be better responded.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
How Does Yelp Create URLs?
Hi all, How does Yelp (or other sites) go about creating URLs for just about every service and city possible ending with the search? in the URL like this https://www.yelp.com/search?cflt=chiropractors&find_loc=West+Palm+Beach%2C+FL. They clearly aren't creating all of these pages, so how do you go about setting a meta title/optimization formula that allows these pages to exist AND to be crawled by search engines and indexed?
Intermediate & Advanced SEO | | RickyShockley0 -
Many New Urls at once
Hi, I have about 5,000 new URLs to publish. For SEO/Google - Should I publish them gradually, or all at once is fine? *By the way - all these URLs were already indexed in the past, but then redirected. Cheers,
Intermediate & Advanced SEO | | viatrading10 -
Url design for automobile parts
Hi All, Im designing the url and im confused, need your experts advice engine-oil is a category I will display car truck, bike oils only
Intermediate & Advanced SEO | | Rahim119
Car > in this page I will display engine oils only related to car
Hyundia> in this page I will display engine oils only related to hyundia
i30 > in this page I will display engine oils only related to i30 models
Petrol > in this page I will display engine oils only related to petrol So im planning for www.xyz.com/engine-oil/car/Hyundia/i30/Petrol or should I write like this below xyz.com/c-engine-oil.html
xyz.com/c-car-engine-oil.html
xyz.com/c-hyundia--car-engine-oil.html
xyz.com/c-hyundia-i30-car-engine-oil.html
xyz.com/c-hyundia-i30-Petrol-car-engine-oil.html and also i heard i should keep 3 folders max.. so confused..
i have lot of car parts like engine oil, gear oil, tyres, battery,etc(categories)0 -
Navigational Changes
Need some advice on when to use canonical vs. redirects for navigation changes to a website. However, if there are other options i am open to them as well. We are consolidating some navigational paths and moving others We are renaming product pages (therefore creating new product pages, CMS platform requirements) Keep in mind we have desktop domain and a mobile domain Questions Do we redirect old URL's to the new product page URL's? Do we redirect old mobile URL's to new mobile URL's or to the desktop equivalent? Do we redirect all old product page URL's containing navigation elements to the new product page URL? If we have a category page being added to two different sections how do we determine the right canonical URL? (the URL will be different because the customer paths will be different) Do we need to make sure and redirect all old URL's to a new URL? If so, what is the best way to find all of the URL's?
Intermediate & Advanced SEO | | seo320 -
Should I try to change these links or no?
Hey guys, I need some advice on a link profile I'm currently working on. Our client sells a product in the hunting industry and has been around for over ten years. I just finished up classifying and looking at all of their links today and found that around half of them are sponsor links, links on "link pages," and a few directory links with almost all of them being followed. Because we are the first company to do SEO for them, I know that these aren't maliciously solicited links, but I'm worried that they may be having a negative impact on the site. Most of the links are coming from other non-competing websites in the outdoor industry which typically tends to have very antiquated sites with very antiquated practices. Essentially, I don't want to go out and try to nofollow or disavow all of these links that the website has had for a long time on other related websites if they're helping us, but I also don't want to be leaving anything up that could algorithmically be identified as spam. Below are some examples to show you what I'm referring to by the sponsor links and link resource pages. Any advice would be much appreciated. Thanks! Sponsored - http://www.becomeabetterhunter.com/ or http://outdoorobsession.tv/ or http://thehollywoodhunter.com/ Link Resource Pages - http://bowhuntamerica.com/links or http://cornerarchery.com/CompanyLinks.html
Intermediate & Advanced SEO | | CaddisInteractive0 -
Should we use URL parameters or plain URL's=
Hi, Me and the development team are having a heated discussion about one of the more important thing in life, i.e. URL structures on our site. Let's say we are creating a AirBNB clone, and we want to be found when people search for apartments new york. As we have both have houses and apartments in all cities in the U.S it would make sense for our url to at least include these, so clone.com/Appartments/New-York but the user are also able to filter on price and size. This isn't really relevant for google, and we all agree on clone.com/Apartments/New-York should be canonical for all apartment/New York searches. But how should the url look like for people having a price for max 300$ and 100 sqft? clone.com/Apartments/New-York?price=30&size=100 or (We are using Node.js so no problem) clone.com/Apartments/New-York/Price/30/Size/100 The developers hate url parameters with a vengeance, and think the last version is the preferable one and most user readable, and says that as long we use canonical on everything to clone.com/Apartments/New-York it won't matter for god old google. I think the url parameters are the way to go for two reasons. One is that google might by themselves figure out that the price parameter doesn't matter (https://support.google.com/webmasters/answer/1235687?hl=en) and also it is possible in webmaster tools to actually tell google that you shouldn't worry about a parameter. We have agreed to disagree on this point, and let the wisdom of Moz decide what we ought to do. What do you all think?
Intermediate & Advanced SEO | | Peekabo0 -
URL Parking and Frame Forwarding..
I have a few URLs... Is there any benefit for me to frame forward these empty domains?
Intermediate & Advanced SEO | | IoanSaid0 -
Should I shorten my urls?
For my informational site I have a lot of urls that are way too long. When I first created the site, I wrote a script that takes out the common words of a post and fashions a url. So, for example, if the first few words of a question were: Hi there, I have a question about back pain. I'm wondering what drugs would be good for relief and how I can get some help? then my url may be: www.mydomain.com/question?id=123-question-back-pain-wondering-drugs-good-relief-how-get-some-help Once I got learning about seo I realized that these urls were too long but I never did anything about them. Should I be shortening these, or is my time best spent doing something else?
Intermediate & Advanced SEO | | MarieHaynes2