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.
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 To increase page authority and domain authority
i create 1000+ back links for my website Dramasapps.com but page authority and domain authority is 1. How To increase ??
Link Building | | Starelse0 -
What off page strategies will work in 2015?
What off page strategies will work in 2015? Client's always look for something innovative in off page techniques how to approach this.
Link Building | | AMTrends0 -
301 redirect lost page authority & total links how ensure it passes on.
hello, I recently changed from www to non www. I have redirected my whole website so if I type www. it goes to the non-www page. doing a open site explorer I noticed my www. still has the page authority 14/100 with 6 links. where as the non-www page has 1/100 page authority and no links. how do I get the www. to mirror the non-www links?
Link Building | | finnmoto
eg if you goto http://www.finnmoto.com.au/mens-motorcycle-kevlar-hoodie/ it will goto the non-www version automatically, so why does the non-www replicate the page authority / total links attached picture for reference.
Google webmaster has been selected for non-www, its been about 2 weeks.
my domain authority i think about about 21 or more now its 19 aswell. I have a feeling:
nofollow or rel=canonical has something to do with it but Ill need read into what that does and how to apply. any ideas? uRiJ2Ul.png?10 -
How can I find page 1 google keyword rankings for a certain page?
Not sure if someone has a tool for this yet or not... Say I have a page like this: http://www.merchantcircle.com/business/Spokane.Painting.Pros.509-210-2799 and I would like to find out what keywords this page ranks for on google. Is there any tool that I can paste in that link and it would give me keywords that it ranks well for? Other than the SEO moz rank checker. It's not like I want to run a campaign just for links like that but I might want to build some links to citations like that so I can move those citations up in the rankings.
Link Building | | Superflys0 -
Having pages in the footer
Hello, I have a website , and some keywords that im targeting i want to create separate pages for, so i can have good quality content on there, but at the same time i dont really want to have those pages in my header menu, its just for the Search Engines to see the quality page, with a keywords im targeting. So can i just have those pages in my footer menu? whats your opinion on this ? Thanks
Link Building | | vlad_mezoz0 -
Do people think it is worth setting up a twylah.com page? Does it have value in adding link juice and content from our tweets?
I have seen the site www.twylah.com which produces a permanent page of your tweets for your fans or search engines to see. Has anyone experimented with this, and does it provide benefits, or is it just another distraction I should stear clear off. Any advice, thoughts or discussion appreciated.
Link Building | | Tizzet0 -
Link value personal pages on .edu
Many .edu colleges and universities provide students and alum a free hosting service. Here's an example: http://homepages.cae.wisc.edu/~dwilson/homepage.shtml According to SEOmoz bar, the PA=53 and DA=94. What is the banklink value from a page like this? Surely this is not the same as a backlink from www.wisc.edu, is it? Best,
Link Building | | ChristopherGlaeser
Christopher0 -
Sitewide VS Editorial page, wich one is worth the most?
Hello fellow SEOMozzers, For a long time I've been wondering what would give the most SEO benefits for a keyword based query between these : 1. A sitewide footer link on SiteA with keyword anchor text to SiteB homepage 2. A sitewide footer link on SiteA with brand name to SiteB homepage 3. A single link on SiteA homepage to SiteB homepage 4. An editorial page on SiteA about SiteB with links to homepage and deep pages Did someone ever did that kind of experiments? Is anyone having better results with one kind of link strategy? Best regards,
Link Building | | G-Force
Guillaume Voyer.1