Friendly and pages regular expression
-
Hi, I am trying to fix this with a reg expression but I dont know how.
Here is the example:
I would like to have my link like this:
mysite.com/noticias/123/here-comes-the-title-page-2
I have a mod_rewrite rule with this:
RewriteRule ^/noticias/([a-zA-Z0-9]+)/([a-zA-Z0-9-]+)-(pagina)-([0-9]+)$ /myphp.php?&id=$1&ipag=$4 [L,NC]
It doesnt work. I think that the problem resides here ([a-zA-Z0-9-]+) because the title is split with "-" and the rule doenst know when the title finish.
Now, if I have a rule like this it works:
mysite.com/noticias/123/here-comes-the-title_page-2
RewriteRule ^/noticias/([a-zA-Z0-9]+)/([a-zA-Z0-9-]+)_(pagina)-([0-9]+)$ /myphp.php?&id=$1&ipag=$4 [L,NC]
How can I fix this to have a "-pagina" instead of "_pagina"
Thanks
-
May I know the platform of website ? If it is wordpress, just one plugin is needed in that case.
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
-
My website Moz Page Authority
My website is Best Comedy Tickets. The current homepage has a Page Authority is 41, mR : 4:53 and Domain Authority is 31. However all my sub pages are basically non existent. All the other pages on the site are a Page Authority of 1, mR : 0.00. Why is this and how do I increase this ? Are there any tips or tricks to increase subpages ? I appreciate all the feed back and am grateful for any tips or helpful advice.
Link Building | | JosephSantiagoNYC0 -
How would you Improve this Page (to get conversions)?
I am looking for some help/advice/tips/suggestions on what you would do to improve this page in terms of getting customers to stay on the site or actually go a level down and place an order... The page is : http://goo.gl/MIajx I seem to be getting a decent amount of traffic, but it is not turning into orders... Any help would be greatly appreciated.
Link Building | | Prime850 -
Would you delete the links page ?
I have noticed that more and more of my competitors are removing the links page from their sites. Either that or they are hiding them. I suppose it makes sense because all the links on my page http://www.kerryblu.co.uk/links-7-w.asp are just links to sites that are linking to me. Supposedly there is no worth in this but I'm just worried that I will lose a lot of links if I delete this page and this may effect my currently crappy rankings for the worse. What do you think? Keep the links page or delete it ?
Link Building | | Dill0 -
Should I work on links to a specific page or site in general?
Hi Guys, I'm trying to have my page rank better for "sell my car Houston". I'm about to start working on getting links to our site and my question is should I work on getting links to that specific page or would it be OK to just get links to the home page (same seo effect)? Specific page: http://www.motorsonwheels.com/pages/sell-my-car-in-houston-tx Home page: http://www.motorsonwheels.com Thanks! -Nash
Link Building | | nkabbara0 -
Header and Footer Links on Home and other catelog pages of site
Hello, in our site www.mycarhelpline.com - we have just reworked on header and footer links. Have removed lost of unncessary footer links. However, the header links on extreme top right side has some links like - login, register, about us, partner with us etc. Is is that google will give importance to these links and i rather should move them to footer links of page and should move the most important anchor links on the top header. Pl suggest
Link Building | | Modi0 -
How can influence a directory backling page on your website ?
Hi, Some good directories asked a backlink for having ours listed in their categories. But of course, I am not fan of putting their link on the home page, but creating a page exclusively for these backlinks is a bad thing to mister google ? thanks in advance !
Link Building | | thuraminho750 -
Using parked domain page to get 50k+ of low quality links, good idea?
Hi all, I'm managing the seo for a hosting company. We have a lot of parked domains with a parked domain page. This will now be updated to promote our products. When this page is updated it will give 50k+ of low quality links to specific pages almost overnight. We curently don't have a very good seo ranking for our keywords, so there is little risk on the downside in the short term. Do you have any suggestions as to how I should go about this? Some alternatives off the top of my head: 1. get the page up an focus all the link equity on relevant pages with keywords in anchor text 2. add noindex / nofollowto all pages or only part of them to avoid puishment 3. add noindex / to the majority of the pages and "release" a percentage every week or so to avoid a "link bomb" Thanks for any and all input!
Link Building | | espenjo_mamut0 -
Too many internal links to a particular page?
I have read all the data regarding the number of links per page, but my question has to do with the number of internal links to a particular page. After looking at some of the competition inside Open Site Explorer I can see that the competitor in question has a much smaller number of links going to the desired page then the site I am comparing. The competitor is outranking a page that should be ranking higher due to higher page authority and external root domain links. Internal Links to Page: 9,950 Competitor Page Internal LInks: 208 Is this a situation where the sheer number of internal links is discounted because of page rank distribution throughout the site? Just want to get some clarity here. Thank you for your responses.
Link Building | | jmsobe0